Dear User,
Applying ideal gas equation i.e.
PV = nRT
Here, the gas is being transferred from one flask to the other. This means that the number of moles of gas is constant.
For flask 1:
P1V1=nRT1
or,
Similarly, for flask 2
Equating both equations we get,