When a number is subtracted from 24 and the difference is divided by that number, the result is 3. What is the value of the number?

a) 2
b) 4
c) 6
d) 12
e) 24