Giải thích các bước giải:
1.Để $(d)$ đi qua $A(2,10)$
$\to 10=2+3a+5$
$\to 10=7+3a$
$\to 3a=3$
$\to a=1$
2.Ta có: $y=2-2x$
$\to x^2+(2-2x)^2=40$
$\to 5x^2-8x+4=40$
$\to 5x^2-8x-36=0$
$\to x\in\{-2,\dfrac{18}{5}\}$
$\to y\in\{6,-\dfrac{26}{5}\}$
$\to (x,y)\in\{(-2,6),(\dfrac{18}{5},-\dfrac{26}{5})\}$
$\to B(-2,6)$ hoặc $B(\dfrac{18}{5},-\dfrac{26}{5})$
Để $B\in (d)$
Trường hợp $B(-2,6)$
$\to 6=-2+3a+5\to a=1$
Trường hợp $B(\dfrac{18}{5},-\dfrac{26}{5})$
$\to -\dfrac{26}{5}= \dfrac{18}{5}+3\cdot a+5\to a=-\dfrac{23}5$