In this word problem, I have to assume that it can be described by a linear function:

A photocopying machine purchased new for $4500 loses $900 in value each year.

a) Find the value of the machine after 18 months.
b) When will the book value be $1200?

Thank you for helping me with this.

Value=4500- 900/12 * timeinMonths