What medications can be used for both heart failure and hypertension?

Many. Many medications can be used for this depending on your overall history. Some common ones include lasix, (furosemide) aldactone/spironolactone, ace inhibitors (e.g. Lisinopril), arbs (e.g. Losartan), and nitrates. This requires a discussion with your doctor who knows your history well.