According to the law of conservation of energy, energy can b…