Write an equation for the problem. Then solve the equation.

There are 18 gallons of water in the tank. The tank is three-fourths full. How many gallons of water g can the tank hold?
A. 12
B. 14
C. 22
D. 24

Let's let "g" be the amount of water the tank can hold, in gallons.

Since the tank is currently three-fourths full, we know that there are 3/4 * g gallons of water in the tank.

And we also know that there are 18 gallons of water in the tank. So we can set up the equation:

3/4 * g = 18

To solve for "g", we can start by multiplying both sides by the reciprocal of 3/4, which is 4/3:

g = 18 * (4/3)

g = 24

So the tank can hold 24 gallons of water.

Therefore, the correct option is D. 24.