First, expand the terms in the two sets of parenthesis on the left by multiplying each term in the parenthesis on the left by each term in the parenthesis on the right:
#5(color(red)(x) + color(red)(2))(color(blue)(x) - color(blue)(3)) - 2(x^2 + 3x - 4) =>#
#5[(color(red)(x) xx color(blue)(x)) - (color(red)(x) xx color(blue)(3)) + (color(red)(2) xx color(blue)(x)) - (color(red)(2) xx color(blue)(3))] - 2(x^2 + 3x - 4) =>#
#5(x^2 - 3x + 2x - 6) - 2(x^2 + 3x - 4) =>#
#5(x^2 + [-3 + 2]x - 6) - 2(x^2 + 3x - 4) =>#
#5(x^2 + [-1]x - 6) - 2(x^2 + 3x - 4) =>#
#5(x^2 - 1x - 6) - 2(x^2 + 3x - 4) =>#
#5(x^2 - x - 6) - 2(x^2 + 3x - 4)#
Next, expand the terms in parenthesis by multiplying each term within the parenthesis by the term outside the parenthesis:
#color(red)(5)(x^2 - x - 6) - color(blue)(2)(x^2 + 3x - 4) =>#
#(color(red)(5) xx x^2) - (color(red)(5) xx x) - (color(red)(5) xx 6) - (color(blue)(2) xx x^2) - (color(blue)(2) xx 3x) + (color(blue)(2) xx 4) =>#
#5x^2 - 5x - 30 - 2x^2 - 6x + 8#
Now, group and combine like terms:
#5x^2 - 2x^2 - 5x - 6x - 30 + 8 =>#
#(5 - 2)x^2 + (-5 - 6)x + (-30 + 8) =>#
#3x^2 + (-11)x + (-22) =>#
#3x^2 - 11x - 22#