Answer :

x is the number
24+x=3x
minus x both sides
24=2x
divide by 2
12=x
the number is12