Harry pays $28 for a one month gym membership and has to pay $2 for every fitness class he takes. This is represented by the following function, where x is the number of classes he takes.



What is the total amount Harry has to pay if he takes 12 classes?