If you take out a mortgage to buy a home, and the home appreciates when you sell it, who keeps the profits?

A) The homeowner
B) The mortgage lender
C) The real estate agent
D) The government