Step-by-step explanation:
Force applied on the gas will be as follows.

As, F = pressure × area. Hence, calculate the forces as follows.
= pressure × area
=

=
N
= pressure × area
=

=
N
-
=
N
Substituting the calculated values into the above formula as follows.

= (m + M) g
N =
N =
m = 472.76 kg
Thus, we can conclude that the mass is 472.76 kg.