A parking garage charges $5.50 to park for 4 hours and $7.75 to park for 7 hours. If the cost is a linear function of a number of hours parked, what is the cost to park for 3 hours?