The answer is very simple. .
6 + 2 (5 - 8 ) ² + 7
Firstly we solve what is inside the parenthesis
[tex]6\text{ + 2}\cdot(-3)^2\text{ + 7}[/tex][tex]6\text{ + 2 (9) +7}[/tex]Then we solve the multiplications
[tex]6\text{ + 18 + 7 }[/tex]Finally we solve the sums.
[tex]\text{ 6 +18 + 7 = }31[/tex]That is the solution.