I am thinking of a number. I multiply it by 10 and subract it by 127. I get the same number if I multiply by 6 and subract 11.

What do you mean " subtract it by 127"?

Should it be?
127 - 10n
or
10n - 127