A painter ordered 3 gallons of paint for $34 per gallon. He ordered 5 gallons of a different kind of paint for $39 per gallon. What is the total cost of both kinds of paint?