Perform the indicated operation (8t^2-4+2)-(5t^2-5t+7)

just add/subtract like powers:

8t^2 - 4t + 2
-(5t^2 - 5t + 7)
--------------------
3t^2 + t - 5