This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] About the centre of mass: angular impulse $=J\cdot\frac L2=I\omega$ with $I=\frac{mL^2}{12}$. $\omega=\frac{6J}{mL}=\frac{6\times0.2}{2\times0.3}=2$ rad s$^{-1}$. The rod rotates uniformly, so the time to turn through $\frac\pi2$ is $t=\frac{\pi/2}{2}=\frac\pi4$ s. So $x=4$. Answer: 4.