It is known that $A289B$ is divisible by $90$, are with $A$ and $B$ as digits. What is $A+B$?
My approach :
If $A289B$ is divisible by $90$, then the unit-value must be a zero, $B=0$. So now we have $A2890$, which can be written as
$$ A2890 = A\times10000 + 2890 $$
since it is divisible by $90$, the sum of the remainders of $A \times 1000$ and $2890$ being divided by 90, must be divisible by 90.
We have $mod(2890, 90) = 10$.
Now we may find $A$ such that $mod(A \times 10000, 90) = 80$.
$$mod(10000, 90) = 10 \implies 10000 = (90 \times 111 + 10) $$
so $A$ must be $8$, since
$$ 8 \times 10000 + 2890 = 8 \times (90 \times 111 + 10) + (90 \times 32 + 10) = 90 \times (888+32) + 90 $$ is divided by 90.
$$A+B = 8$$
Is this the best approach..? Thanks.
If an integer is divisible $9$ then the sum of the digits is also divisible by $9$. So
$$A+2+8+9 +B \equiv A+B + 1 \equiv 0 \pmod{9}$$ shows $A+B \equiv_9 8$. Then since $B=0$ like you noted, $A+B=8$.