If a number is decreased by 9 and the difference is multiplied by three, the result is the same as twice the number decreased by ten. How do you find the number?