The product of a number and 8 has the same value as that number minus 2. what is that number?

8x = x-2