We are given a triangle TQS.
And in triangle TQS, TR is a perpendicular to QS.
Therefore, in triangle TQS and TRS
<QTS = <TRS : Right angles .
<S = <S : Common angles of triangles TQS and TRS.
Therefore triangles TQS and TRS are similar.
Note: Similar triangle has sides in proportion.
Therefore,
QS/TS =TS/RS
(6+12)/3x = 3x/12.
18/3x = 3x/12
ON cross multiplication, we get
3x*3x = 18 * 12
.
Dividing both sides by 9, we get



Plugging x=
in 3x, we get
3x = 3(
) =
=
.
<h3>Therefore, the length of side TS is

units.</h3>