Mrs. Ebert is driving to Ohio to visit family. If her truck can drive 552 miles on 23 gallons of gas, how many gallons of gas would she need if the total trip was 840 miles?

We can set up a proportion to solve this problem:

552 miles / 23 gallons = 840 miles / x gallons

To find x, we can cross multiply:
(552 miles)(x gallons) = (23 gallons)(840 miles)

Next, we divide both sides by 552 miles:
x gallons = (23 gallons)(840 miles) / 552 miles

Simplifying this expression gives us:
x gallons = 35 gallons

Therefore, Mrs. Ebert would need 35 gallons of gas for the total trip.