\begin{align*}\dfrac{\left(\dfrac{x^a x^2}{x^3}\right)^3}{x^a}=x^5\end{align*}


In the equation above, a is a constant. What is the value of a ?