What is a mortgage?

A.type of rent used to pay for housing
B.A type of loan used to buy property
C.A measure of the value of a home
D.A measure of your credit rating