You and your friend join a new gym that requires a one-time joining fee and monthly payments. Your friend chooses the 1 year plan and pays $687, while you elect the 18 month contract which costs $981. Use this information to determine the linear model used to calculate cost from months of membership.