Find all solutions to the equation 6x^2 - 31x + 40 = 5x^2 - 25x + 31. If you find more than one, then list the values separated by commas. If the solutions are not real, then they should be written in a + bi form.