Solve for x x^2+x=7x+16