Simplify (5x^2+8x)+(x^2-5x+1)