Final pressure will be same on both sides. Let it be P, with volume V, on the left side and (6V_0-v) on the right side.
Case 1: Adiabatic Process
P1Vγ1=P2Vγ2
For the gas enclosed in the left chamber,
P0×(5V0)γ=P(V)γ.........(i)
while for the gas in the right cylinder,
8P0(V0)γ=P(6V0−V)γ.........(ii)
Dividing (i) and (ii), we get
(6V0−VV)γ=85γ
or, 6V0V=1+45
i.e., V=103V0
substituting it in equation(ii),
P=P0(5V×310V)32=3√32√2P0=1.84P0
P=1.84P)0,V=103V0,(6V0−V)=83V0
Case 2: Isothermal process
For the gas enclosed in the left chamber,
P0×5V0=PV.......(i)
while for the gas in the right cylinder
8P0×V0=P(6V0−V)........(ii)
After solving, we get
V=3013V0 and P=136P0
and (6V0−V)=4813V0