Please see the work below.
Work Step by Step
We know that the energy is conserved and can be converted from one form to another. But, in some cases it becomes difficult to achieve a 100% conversion rate. The reason behind this is that the processes involved in conversions lead to a lot of wasted of energy. This is shown by the Carnot efficiency.