SYSTEM gives the relationship between heat (Q), Internal energy (U) & work done (W) it is related by the equationdQ = ΔU + dWCalculation:⇒ Here Q = +2500 J (∵ Heat is supplied to the system)ΔU = + 1500 (∵ energy increases)Now 2500 J = 1500 J + W⇒ W = 1000 JThis work done by gas will be UTILIZED to raise the piston.Work done by gas = work done by piston mass⇒ 100 J = mgx\(\Rightarrow x = \frac{{1000}}{{100 \times 9.81}} = 1M\)