John wants to rent a car. He knows that a friend used XYZ rental agency in the past. His friend paid $65 to drive 50 miles and $74 to drive 80 miles. What is the linear function the agency uses to find the cost?