Find the total surface area of a regular pyramid with a square base if each edge of the base is 16 inches, the slant height of one side is 17 inches, and the altitude is 15 inches.