Oops! Let's check our math! Did she calculate 575 miles x 50 gallons=28,750, and then divide by...what? That can't be it!
Look at it this way: 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 Maggie divided 575 miles by 50 gallons to get 11.5 miles per gallon.