-3(2x-7)-12+10x=

Multiply the -3 into the brackets:

-3(2x-7)-12+10x

= -6x + 21 - 12 + 10x

and then add the xes and the integers