1. Well, you have everything you need to find total cost of principal plus interest.
15 years x 12 months =180 months.
180 x $1,480.97 =$266,574.60 - total cost of principal + interest.
2. The second question is the reverse of question #1.
$1,179,830 /(40 years x 12 months=480 months) =$2,457.98 - This is the monthly payment.
Even though you didn't give your multiple choices, the payment agrees with the details given about the mortgage.