Step 1: Write the virtual work equation for the beam mechanism alone.
For the beam mechanism (hinges at both beam-column joints and at midspan), using rotation $\theta$ at the end hinges and $2\theta$ at midspan, deflection at midspan $= L\theta/2$:
$$ M_p\theta + M_p(2\theta) + M_p\theta = wL\left(\frac{L\theta}{4}\right) $$
$$ 4M_p\theta = \frac{wL^2\theta}{4} \quad \text{...(i)} $$
Step 2: Write the virtual work equation for the sway mechanism alone.
For the sway mechanism (hinges at the fixed base and at the left joint only, since the roller end needs none and the beam does not rotate), with rotation $\theta$ at each and sway $\Delta = L\theta$:
$$ M_p\theta + M_p\theta = P(L\theta) $$
$$ 2M_p\theta = PL\theta \quad \text{...(ii)} $$
Step 3: Add equations (i) and (ii) directly.
Adding the left sides and the right sides of (i) and (ii):
$$ (4M_p\theta) + (2M_p\theta) = \frac{wL^2\theta}{4} + PL\theta $$
$$ 6M_p\theta = PL\theta + \frac{wL^2\theta}{4} \quad \text{...(iii)} $$
Step 4: Correct for the shared hinge counted twice.
Equation (iii) treats the left beam-column joint as if it needs a SEPARATE hinge in both the beam mechanism and the sway mechanism, that is, it double counts the term $M_p\theta$ at that one joint.
But in the real combined mechanism, the beam-side rotation and the column-side rotation at that joint are in opposite senses and cancel each other, so that joint does not actually need to yield at all once the two mechanisms are combined into one.
So we must subtract the double-counted contribution, $2M_p\theta$ total (one $M_p\theta$ from each of (i) and (ii)), from the internal work side:
$$ 6M_p\theta - 2M_p\theta = PL\theta + \frac{wL^2\theta}{4} $$
$$ 4M_p\theta = PL\theta + \frac{wL^2\theta}{4} $$
Step 5: Solve for $M_p$.
Dividing by $\theta$:
$$ 4M_p = PL + \frac{wL^2}{4} $$
$$ M_p = \frac{PL}{4} + \frac{wL^2}{16} $$
Matching against $M_p = C_1PL + C_2wL^2$: $C_1 = 1/4$ and $C_2 = 1/16$.
Step 6: Compute the ratio.
$$ \frac{C_1}{C_2} = \frac{1/4}{1/16} = 4 $$
\[ \boxed{C_1/C_2 = 4} \]