Option (B) is correct.
Explanation: Both cylinders are insulated, so ΔQ=0 in both, but the work done is different.
X (free expansion): the gas rushes into a vacuum and pushes nothing, so ΔW=0. Then ΔU=ΔQ−ΔW=0, and the internal energy of an ideal gas depends only on its temperature, so TX=300 K. This expansion is not quasi-static, and PVγ=constant does not apply to it.
Y (quasi-static adiabatic): the gas does work on the piston at the expense of its internal energy. Using TVγ−1=constant:
TY=300×(3V0V0)0.4=30.4300=1.55300=193 K
(A) is wrong: it applies the adiabatic relation to X as well; PVγ=constant holds only for a slow (quasi-static) adiabatic process, and in free expansion no work is done.
(C) is wrong: "no heat exchanged" does not mean "no change in internal energy"; in Y the gas does work, so its internal energy and temperature fall.
(D) is wrong: the two are swapped; it is the gas that does work (in Y) that cools.