Heart failure occurs when the heart cannot pump blood efficiently enough to meet the body's needs. This condition can develop…