Where does the energy in coal bonds come from?
Energy never comes from breaking bonds, it is released when forming bonds. In the case at hand, the sun's energy is used to break carbonoxygen bonds through photosynthesis. You get that energy back when carbonoxygen bonds are formed by C C and OX2 O X 2 reacting to COX2 C O X 2: that's where the energy of burning coal comes from.