The graph above shows the amount of water remaining in a tank each time a pail was used to remove x gallons of water. If 5 gallons were in the tank originally and 212 gallons remained after the last pail containing x gallons was removed, what is the value of x ?