I am glad you are here. Rule #1 is to give it a try. No one wants to do your homework. Let's see what you get.
If you finance $50,000 of the purchase of your new home at 5.00% compounded monthly for 25 years, the monthly payment will be $292.30. If instead your had a rate of 5.50% compounded monthly for 10 years, the monthly payment will be $542.63. How much do you pay in total for the $50000 mortgage if you finance it for 25 years?
Total payment =_____________
How much do you save (in total payments) if you finance for 10 years instead?
I think you have it. Have you determined why you were struggling with it? Personally, I didn't want to mess with the mortgage formulas. I realized that such formulas were not necessary to solve the problem. Reading carefully is an important effort. Good work.