Final answer:
The change in internal energy of the system is -10 J, indicating the system lost 10 joules of internal energy.
Step-by-step explanation:
To find the change in internal energy of a system in Physics, we use the first law of thermodynamics, which can be expressed as ΔU = Q - W, where ΔU is the change in internal energy, Q is the heat added to the system, and W is the work done by the system. In this scenario, if 5 J are taken away by heat from the system (Q = -5 J), and the system does 5 J of work (W = 5 J), we can calculate the change in internal energy (ΔU) of the system by substituting the given values into the equation.
ΔU = Q - W = (-5 J) - (5 J) = -10 J
Therefore, the change in internal energy of the system is -10 J. This means that the system has lost 10 joules of internal energy.