Solve for x 2x^2-5=3x^2-12x+31