For mph and mpg, you can get gph by dividing the two. But probably the person who gave the mpg figure just calculated it based on mph and gph in the first place.
As far as comparing flying to driving goes, you also have to consider the distance traveled and the cost of a gallon of fuel, just to get apples to oranges (without those, it’s more like apples to cabbages).
For example, a 450nm flight I regularly take would be a 600-mile drive. I burn 9 gph at 130 KTAS, so with no wind I burn 31 gal. That’s 19 car miles per gallon of avgas. Of course, the avgas costs about twice as much as car gas, so it’s more like getting 10 mpg in the car. But I would have to drive an average of 170 mph the entire way to get there in the same 3.5 hours.
In other words, you’ll never find a way to make this an apples-to-apples comparison.