When a wire is stretched to $n$ times its length, its resistance increases by a factor of $n^2$.
Here, $n = 2$, so the resistance of $P$ increases by $2^2 = 4$ times.
This leads to the direct equation: $4 \times l_P = l_Q$.
Since $l_P + l_Q = 1$, we have $5 l_P = 1 \implies l_P = 0.2\text{ m}$ and $l_Q = 0.8\text{ m}$.