This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] The image of $(7,2)$ in $2x+y=6$: $\frac{x-7}2=\frac{y-2}1=-2\cdot\frac{10}5=-4$, giving $(-1,-2)$. The incident ray passes through $(3,10)$ and $(-1,-2)$: slope $3$, line $3x-y+1=0$. So $a=3$, $b=-1$ and $a^2+b^2+3ab=9+1-9=1$. Answer: 1.