4851A53B is divisible by 9 and B is an even number,
A number is divisible by 9 if the sum of its digits is divisible by 9.
As the starting four digits 4851 (4 + 5 + 8 + 1 = 18 is divisible by 9)
⇒ For the number to be divisible by 9, next four digits A53B,
(A + 5 + 3 + B) should be a multiple of 9
As B is an even number, taking all the possible case for the value of A,
⇒ A53B = A + 8 + B,
Possible values of B = 0, 2, 4, 6 and 8
Possible values of A (corresponding to values of B) = 1, 8, 6, 4 and 2
∴ Sum of all possible value of A = 21