The internal energy of the system is 27 joules.
From the first law of thermodynamics, we can write;
U = q + w
Where;
U = internal energy
q = heat
w = work
Since the system absorbs heat, q is positive. The system does work so w is negative.
Hence;
U = 52 J - 25 J
U = 27 joules
Learn more about internal energy: https://brainly.com/question/11278589