Given Bulbs are rated as (P1, V) & (P2, V) respectively. The resistance of 1st bulb, $\text{R}_1=\frac{\text{V}^2}{\text{P}_1}$ The resistance of 2nd bulb, $\text{R}_2=\frac{\text{V}^2}{\text{P}_2}$ - When Both are connected in Series with a power supply of voltage V.
As both the bulbs are in series connection hence both will have the same amount of current flowing through them.
$\text{i}=\frac{\text{V}}{\text{R}_1+\text{R}_2}=\frac{\text{V}}{\frac{\text{v}^2}{\text{P}_1}+\frac{\text{v}^2}{\text{P}_2}}=\frac{1}{\text{V}}\Big(\frac{\text{P}_1\text{P}_2}{\text{P}_1+\text{P}_2}\Big)$
Power dissipated in the circuit,
$\text{P}_\text{d}=\text{i}^2\big(\text{R}_1+\text{R}_2\big)=\frac{1}{\text{V}^2}\Big(\frac{\text{P}_1\text{P}_2}{\text{P}_1+\text{P}_2}\Big)^2\Big(\frac{\text{V}^2}{\text{P}_1}+\frac{\text{V}^2}{\text{P}_2}\Big)$
$\text{P}_\text{d}=\frac{\text{P}_1\text{P}_2}{\text{P}_1+\text{P}_2}$
- When both are connected in paralle
In this case, Both bulbs will get the same voltage supply.
Hence Power dissipated,
$\text{P}_\text{d}=\frac{\text{V}^2}{\text{R}_1}+\frac{\text{V}^2}{\text{R}_2}=\text{V}^2\Big(\frac{\text{P}_1}{\text{V}^2}+\frac{\text{P}_2}{\text{V}^2}\Big)$
$\text{P}_\text{d}=\text{P}_1+\text{P}_2$