A piece of copper is heated to 90°C and then lowered into a beaker of water at 20°C.

The copper transfers 3040 J of energy to the water before it is removed.

The temperature of the copper after it is removed is 50°C.

The specific heat capacity of copper is 380 J/kg °C.

Calculate the mass of the copper.