As you can see there is a negative sign befor 3x. That means 3x is a negative value. Therefore, in order to place it as first left value you would take -3x and put it before +12 ( since there is no negative sign before 12, it will stay positive)
-3x+12
Hope This Helps :)