$$\left. \begin{array} { l } { S - t = 3 } \\ { \frac { S } { 3 } + \frac { t } { 2 } = 6 } \end{array} \right.$$
$t=6$
$S=9$