If the difference when −15 is subtracted from a number is twice the difference when 24 is subtracted from the same number, what is the value of the number?