Concept:
- For an ideal gas, $PV=nRT$. At fixed volume $V$ and fixed temperature $T$, pressure is directly proportional to the total number of moles: $P \propto n$.
- Since the required quantity is itself a ratio, $m_1/m_2$, it is faster to introduce this ratio as a single unknown $x$ from the start, instead of tracking $m_1$ and $m_2$ separately.
- Any factor common to both mole expressions, such as the molar mass of He, cancels out of the ratio $n_1/n_2$ and never needs to be evaluated.
Step 1: Convert the pressure condition into a mole ratio.
Both cylinders have equal volume and equal temperature, so from $PV=nRT$, $P \propto n$ for each cylinder.
Given $P_1=5P_2$, this directly gives $\dfrac{n_1}{n_2}=5$.
Step 2: Write the mole expressions and introduce $x=\dfrac{m_1}{m_2}$.
Let the molar mass of He be $M$, so the molar mass of Ar is $10M$ (given).
Cylinder 1 has mass $m_1$ of He and $m_2$ of Ar: $n_1=\dfrac{m_1}{M}+\dfrac{m_2}{10M}$
Cylinder 2 has mass $m_2$ of He and $m_1$ of Ar: $n_2=\dfrac{m_2}{M}+\dfrac{m_1}{10M}$
Step 3: Divide both expressions by the common factor $\dfrac{m_2}{M}$.
Dividing $n_1$ and $n_2$ by the same nonzero quantity leaves their ratio unchanged, and cancels $M$ immediately:
$\dfrac{n_1}{m_2/M}=\dfrac{m_1}{m_2}+\dfrac{1}{10}=x+\dfrac{1}{10}$
$\dfrac{n_2}{m_2/M}=1+\dfrac{m_1}{10m_2}=1+\dfrac{x}{10}$
So: $\dfrac{n_1}{n_2}=\dfrac{x+\frac{1}{10}}{1+\frac{x}{10}}$
Step 4: Solve for $x$ using $\dfrac{n_1}{n_2}=5$.
$\dfrac{x+0.1}{1+\frac{x}{10}}=5$
$x+0.1=5\left(1+\dfrac{x}{10}\right)=5+\dfrac{x}{2}$
$x-\dfrac{x}{2}=5-0.1$
$\dfrac{x}{2}=4.9$
$x=9.8=\dfrac{49}{5}$
Final Answer: $\dfrac{m_1}{m_2}=\dfrac{49}{5}=9.8$