People with heart problems sometimes receive a prescription for open-heart surgery. This is a major surgery…