Jack is taking a road trip. If he travels 180 miles at 40 miles per gallon and then another 105 miles at 35 miles per gallon, how many gallons of fuel has his car consumed?