All questions must be asked in the proper forum. But the question you are asking here is quite broad, and can't be answered simply. Therefore, we require you do a bit of research first, and come back with more pointed questions, if you still have them. A starting point might be https://en.wikipedia.org/wiki/Mass–energy_equivalence