Explanation : The value of a should be decided in such a way that the sum of the digits is divided by 3 completely.
547a = 5+4+7+a = Number divisible by 3
=16+a (it should be divided by 3 completely)
=> a= 2, 5, 8
=2 + 5 + 8 (sum of values of a)
= 15