Solution :
Balancing condition of Wheatstone bridge is used to calculate the value of unknown resistance.
The situation can be depicted as shown in figure.

As resistances $$S$$ and $$6\,\Omega $$ are in parallel their effective resistance is
$$\frac{{6S}}{{6 + S}}\Omega $$
As the bridge is balanced, hence it is balanced Wheatstone bridge.
For balancing condition,
$$\eqalign{
& \frac{P}{Q} = \frac{R}{{\left( {\frac{{6S}}{{6 + S}}} \right)}} \cr
& {\text{or}}\,\,\frac{2}{2} = \frac{{2\left( {6 + S} \right)}}{{6S}} \cr
& {\text{or}}\,\,3S = 6 + S \cr
& {\text{or}}\,\,S = 3\,\Omega \cr} $$