Explain the law of conservation of energy. Give a specific example using kinetic and potential energy that shows how energy is conserved.