A motorcyclist rides 976 miles, using 30.5 gallons of gasoline. What is the mileage, in miles per gallon?