The center of mass \( x_{\text{cm}} \) for two masses is given by the formula:
\[
x_{\text{cm}} = \frac{m_1 x_1 + m_2 x_2}{m_1 + m_2}
\]
where:
- \( m_1 = 5 \, \text{g} \), \( x_1 = 0 \) (position of 5 g mass at the origin),
- \( m_2 = 3 \, \text{g} \), \( x_2 = 40 \, \text{cm} \) (position of 3 g mass 40 cm away).
Substitute the values into the formula:
\[
x_{\text{cm}} = \frac{(5 \times 0) + (3 \times 40)}{5 + 3} = \frac{120}{8} = 15 \, \text{cm}
\]
Thus, the center of mass lies 15 cm from the 5 g particle, and the correct answer is option (1).