This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] (Medium confidence: the key is followed. As printed, the right-hand limit is $1$ for every $b$, so $b$ is not fixed by the data; the key $81$ corresponds to $b=0$.) Left limit: with $x=\frac\pi2-h$, $\frac{\tan8x}{\tan7x}=-\tan8h\tan7h\to0$, so the limit is $\left(\frac87\right)^0=1$. Continuity: $a-8=1\Rightarrow a=9$. With $b=0$: $a^2+b^2=81$. Answer: 81.