That's right! Maggie knew she could divide the number of miles by the number of gallons to get "miles per gallon." The word "per" is another way of saying "divided by," so she divided 575 miles by 50 gallons to get 11.5 miles per gallon.