To calculate the cost, we need to first calculate how many gallons of gas the car will need to travel 500 miles. To do this, we divide the distance by the fuel efficiency:
gallons of gas needed = distance / fuel efficiency
gallons of gas needed = 500 miles / 25 mpg
gallons of gas needed = 20 gallons
Now we can calculate the cost of the gas by multiplying the number of gallons needed by the price of gas:
cost of gas = gallons of gas needed * price of gas
cost of gas = 20 gallons * $3.50 / gallon
cost of gas = $70
Therefore, it would cost $70 to drive 500 miles in a car that gets 25 mpg, assuming the price of gas is $3.50 per gallon.