Zaira has just purchased a new home. The house was priced at $145,000, and she chose a 40-year mortgage at 5.1%. What will her total cost be?
A. $297,312
B. $324,776
C. $340,234
D. $387,906