Answer
$a=4$ and $b=16$
Work Step by Step
We are given:
$6\lt 3x\lt 12$
We divide by $3$:
$\frac{6}{3}\lt \frac{3x}{3}\lt \frac{12}{3}$
$2\lt x\lt 4$
We take the square:
$2^{2}\lt x^{2}\lt 4^{2}$
$4\lt x^{2}\lt 16$
Therefore:
$a=4$ and $b=16$