This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] A general term uses $2x$ ($p$ times), $x^{-7}$ ($q$ times), $3x^2$ ($r$ times) with $p+q+r=5$ and $p-7q+2r=0$. Eliminating $p$: $8q-r=5$, giving $q=1$, $r=3$, $p=1$ (the only non-negative solution). Term $=\frac{5!}{1!1!3!}\cdot2\cdot1\cdot3^3=20\cdot2\cdot27=1080$. Answer: 1080.