Answer: 175 J
Step-by-step explanation:
According to first law of thermodynamics:

=Change in internal energy
Q = heat absorbed or released
W = work done or by the system
W = work done on the system=
{Work done on the system is positive as the final volume is lesser than initial volume}
w = + 25 J
q = + 150 J {Heat absorbed by the system is positive}

Thus Q+W= +175 J