You would have to apply the distributive property and simplify. Multiply the -8 by -1, then multiply 7 by -1 and then -1 by -7. After you would simplify by adding 10x^2 and 8x^2, subtract 7x^2 from -10x and finally add 2 and 7 and you’re answer should be 18x^2-17x+9