Step 1: Use the formula:
\[
\text{Profit} = (\text{Selling price} - \text{Variable cost}) \times Q - \text{Fixed cost}
\]
Step 2: Substitute values:
\[
5000 = (50-30) \times Q - 20000
\]
\[
5000 = 20 Q - 20000
\]
\[
20 Q = 25000
\]
\[
Q = \frac{25000}{20} = 1250
\]


