Write and solve an equation that represents the following: A number decreased by 12 is 24.
x - 24 = 12; x = 36
x - 12 = 24; x = 36
24 - 12 = x; x = 12
x + 12 = 24; x = 12