Step: Find the value of M
Given number: 77548M
A number is divisible by 9 if the sum of its digit is divisible by 9.
Here, the sum of digits = 7+7+5+4+8+M
= 31+M
The number next to 31 which is divisible by 9 is 36.
So, the required number =36−31= 5
Hence, the value of M = 5.