On a long journey, a hybrid car first ran on its electric battery for miles. After that, it switched to gasoline, consuming fuel at a rate of gallons per mile. If the car's overall fuel efficiency for the entire journey was miles per gallon, what was the total distance covered by the car in miles?
480
500
520
540
560