Calculate: (34x-10)+(-10x+8)

Expression: $\left( 34x-10 \right)+\left( -10x+8 \right)$

Factor out $2$ from the expression

$\left( 2\left( 17x-5 \right) \right)+\left( -10x+8 \right)$

Factor out $-2$ from the expression

$\left( 2\left( 17x-5 \right) \right)+\left( -2\left( 5x-4 \right) \right)$

Remove unnecessary parentheses

$2\left( 17x-5 \right)-2\left( 5x-4 \right)$

Factor out $2$ from the expression

$2\left( 17x-5-\left( 5x-4 \right) \right)$

When there is a $-$ in front of an expression in parentheses, change the sign of each term of the expression and remove the parentheses

$2\left( 17x-5-5x+4 \right)$

Collect like terms

$2\left( 12x-5+4 \right)$

Calculate the sum

$2\left( 12x-1 \right)$