A parking garage charges ​$1.50 for the first hour and ​$0.75 for each additional hour. If a customer gave the parking attendant ​$45 for parking from 10 A.M. to 3 P.M.​, how much did the garage​ charge?