Suppose its given that
21!=5109094x17170y440000
How do I find
x+y
I know any factorial bigger than 6! will be divisible by 9. So I can apply that rule to find out it should be
52+x+y divisible by 9
. Which will imply that
x+y = 2
But looking at the answer
21! = 51090942171709440000
so
x+y = 11
Is there any rule that I am missing which will tell me the actual sum, not the digit sum?
You can use the divisibility test for $11$. Add the digits in even places and subtract the digits in odd places. The result must be a multiple of $11$. That will distinguish your two cases.