Hyphens and Dashes. A hyphen joins two or more words together while a dash separates words into parenthetical statements. The two are sometimes confused because they look so similar, but their usage is different. Hyphens are not separated by spaces, while a dash has a space on either side.
I hope this helps you
12x/2+24/2
6x+12
-6 ( -x-2)