Pseudogap and the superconducting energy in hole-doped high-temperature superconductors