Translate the following sentence into an equation. Use x to represent an unknown number do not solve.

The ratio of a number and 6 is equivalent to the difference of the number and 22