Step: Find the value of M
Given number: 627M9
A number is divisible by 9 if the sum of its digit is divisible by 9.
Here, the sum of digits = 6+2+7+M+9
= 24+M
The number next to 24 which is divisible by 9 is 27.
So, the required number = 27−24
Hence, the value of M = 3.