$\begin{array}{l}\text{- Số }\overline{87ab}\,\,\vdots\,\,9 \Leftrightarrow8+7+a+b\,\,\vdots\,\,9 \\\qquad\qquad\quad\,\,\,\, \Leftrightarrow 15+a+b\,\,\vdots\,\,9 \\\text{- Vì a, b là chữ số }\Rightarrow \begin{cases} 0 \leq a \leq 9 \\ 0\leq b \leq 9 \end{cases} \\\Rightarrow 0+0 \leq a+b \leq 9+9 \\\Rightarrow 0\leq a+b \leq 18\\\text{- Vì } 15+a+b\,\,\vdots\,\,9 \text{ và }0\leq a+b\leq 18 \\\Rightarrow a+b \in \{3;12\}\\\text{mà }a-b=4 \\\Rightarrow a+b=12\\\Rightarrow \begin{cases} a=(12+4)\div2=16\div2=8\\b=(12-4)\div2=8\div2=4\end{cases} \\\text{- Vậy }a=8 \text{ và }b=4 \end{array}$