You can make it simpler then all that. Just calculate passenger mpg, if one (the driver) then the mpg is the mpg per passenger. If two or more just multiply times the passengers. Example a 25 mpg vehicle with thee passengers is getting 75 mpg per passenger.
__________________
|