Step to solve simple algebraic expressions.

Step one- open the bracket 
Step two- collect the like terms by 6x to meet 7x to turn to -6x,+7x and -34 to meet -10to make it -10,+34
Step three - calculate it, it will result to X and +24.

For more understanding you can