Solve the riddle.

Five-eighths of a number decreased by twelve is the same as one-half of the number increased by two.

StartFraction 5 Over 8 EndFraction x minus 12 = one-half x 2