Let E be the total amount of energy that the heating system would consume in order to transform 9000kWh into useful thermal energy.
Since the efficiency of the system is 45%, then, 9000kWh is equal to 45% of E.
This means that 45% of the total energy consumed is transformed into useful thermal energy. Then:
Solve for E:
Therefore, the total amount of energy consumed by the system would be 20,000kWh.