Hi there!

For a mass undergoing SHM, the total energy of the system is given as:

Where:
k = Spring constant (N/m)
A = amplitude (m)
There is no quantity of mass in the equation, so the total mechanical energy of the system is NOT impacted by the object's mass.
Thus, the energy of the system will still be 8.0 J.