We have:
P = pressure = 1 x 10^5 Pa
Vi = initial volume = 0.0005 m^3
Vf= final volume = 0.0003 m^3
Q = heat = 25J (absorbs)
First, calculate work (W)
W = p (vf-vi)
W= 1 x 10 ^5 Pa ( 0.0003 m^3- 0.0005 m^3)
W= - 20 J
Now, apply:
ΔU= Q - W
Where:
ΔU = change in internal energy
Replacing:
ΔU= 25J - (-20J) = 45J (option C)