If you take a number, times by 8 then add 6. You get the same as if you took the number, times by 3 then subtract 7. What is the number?