First, we have to set up the necessary equation for work:
[tex]W=\int_{V1}^{V2}PdV[/tex]
As we can approximate the integral to:
[tex]W=\text{ P*\lparen V}_2-V_1)[/tex]
Where V is the volume and P is the pressure.
So, we can calculate these variables:
We have a number 1 state, which is the initial for both pistons (let's call the left piston A and the right one B), and we have the change in the volume that can be shown in the next equation
[tex]\Delta V_=\text{ A*}\Delta\text{S}[/tex]
Where A is the transversal area and S is the position. We have the change in the position, so we can calculate the change in the volume:
[tex]\Delta V_A=0.25m^2*\text{ 1m = 0.25m}^3[/tex]
Now, we can make these equivalence as the exercise tells that work in conserved:
[tex]\begin{gathered} W=P*\Delta V_A=P*\Delta V_B \\ \\ \end{gathered}[/tex]
And, if we assume that the process is isobaric (the pressure is the same in both), we can calculate the change in the volume as follows:
[tex]\Delta V_B=\Delta V_A=0.25m^3[/tex]
And now, we can calculate the change in the position through the same equation that we used before:
[tex]\begin{gathered} \Delta V=A*\Delta S \\ \\ \Delta S=\frac{\Delta V}{A}=\frac{0.25\text{ m}^3}{0.5\text{ m}^2}=0.5m \end{gathered}[/tex]
So, the answer is that the right piston moves 0.5m