Mortgage A:
The payment is 190,000*(.0725/12)/(1 -(1 +.0725/12)^(-12*20)) ≈ 1501.71
The total of all payments is 240*1501.71 = 360,410.40, so the interest cost is this amount less the principal, or $170410.40.
Total loan cost = $2800 + 1%*190,000 +170,410.40 = 175,110.40
Mortgage B:
The payment is 190,000*(.0525/12)/(1 -(1 +.0525/12)^-240) ≈ 1280.30
The total of all payments is 240*1280.30 = 307,272.00, so the total interest cost is $117,272.00.
Total loan cost = $2800 +5%*190,000 +117,272.00 = 129,572.00
Mortgage A has a larger total cost than Mortgage B by $45,538.40