Answer:
The change in energy is 1.023 J.
Step-by-step explanation:
The formula for Kinetic Energy is

The formula for Potential Energy is

In the above question, the hammer has an initial Kinetic Energy which hits the anvil loses some energy and rises up to gain potential energy.
Initial Kinetic Energy=

=3.375 J
Potential Energy it gains after rising the particular height= 3*9.8*0.08
=2.352 J
Therefore, the difference in energy is 1.023 J.