Find the set of values of $a$ for which the inequality $(x-3a)(x-3-a)<0$ is satisfied for all $x$ in the interval $1\le x\le3$.
$$(x-3a)(x-3-a)<0\implies a+3<x<3a$$ and we are given that $1\le x\le3$.
So $a+3>1$ and $3a<3$ ,so $a\in (-2,1)$ but the answer given is $a\in(0,\frac{1}{3})$.