How are loan rates determined?

Rates are determined based on the type of collateral used to secure the loan.