Ice cream is packaged in cylindrical gallon tubs. A tub of ice cream has a total surface area of 387.79 square inches.

If the diameter of the tub is 10 inches, what is its height? Use π = 3.14.