Splitting color(green)(-1/2x+6)−12x+6 into parts.
color(white)("dddddddd")ddddddddFirstly we look at color(green)(-1/2x)−12x
color(blue)(-1/2)xx? " gives"color(green)( -1/2x)−12×? gives−12x
So in this case ? =color(magenta)(x?=x
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
color(white)("dddddddd")ddddddddSecondly we look at color(green)(+6)+6
color(blue)(-1/2)xx?" gives "color(green)(+ 6)−12×? gives +6
So in this case ?=color(magenta)(-12)?=−12
color(blue)(-1/2)xxcolor(magenta)((-12)) =color(green)( +6)−12×(−12)=+6
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Putting it all together
color(blue)(-1/2)color(magenta)((x-12)) =color(green)(-1/2x+6)−12(x−12)=−12x+6