The pool is drained at 700 gallon per hour , so you need to multiply the number of hours ( t) by 700 to find the total number of gallons after a certain amount of hours, this would be written as 700t.
You would then need to subtract that amount from the starting value of 28,000.
This would make the equation g = 28,000 - 700t.