7a^2-ab-2b^2+5+(a^2-3ab+4)-(8-2b^2)
7a²-ab-2b²+5+(a²-3ab+4)-(8-2b²)=7a²-ab-2b²+5+a²-3ab+4-8+2b²=8а²-4ab+1
7a²-ab-2b²+5+(a²-3ab+4)-(8-2b²)=7a²-ab-2b²+5-a²+3ab-4+8+2b²=6a²+2ab-9=2a(3a+b)-9