Let $u(x,t)=\phi(x+3t)+\psi(x-3t)$. Applying D'Alembert's formula, for $x>0$ we have
$$\phi(x)=\frac{1}{2}\sin(x)+\frac{1}{6}\int_0^x 3\cos x'\,dx'=\sin(x)\\
\psi(x)=\frac{1}{2}\sin(x)-\frac{1}{6}\int_0^x 3\cos x'\,dx'=0$$
We need to find $\psi(x)$ for $x<0$. To do this, we apply boundary condition:
$$0=u|_{x=t}=\phi(4t)+\psi(-2t)\,\,t>0$$
Therefore, we have
$$\psi(t)=-\phi(-2t)\,\,t<0$$
Thus we have the solution
$$u(x,t)=\sin(x+3t)-\sin(6t-2x)$$
which is valid for $0<x<3t$. But the original equation is defined on a domain that is a subset of this (since $x<t\implies x<3t$), so this is the solution to the original problem.