An aquarium has 5 gallons of water in it and is being filled up at a rate of g gallons every m minute. The amount of water w in the tank can be represented by the equation
w = 5 + g - m. Write an equation that can be used to find the number of minutes m the tank has been filled if we know w and g.

Write an equation that can be used to find the number of minutes g the tank has been filled if we know w and a.