Real number x and y satisfy x+xy^2=250y+y^2, x- xy^2= -240y+y^2. Enter all possible values of x, separated by commas.
The solutions are (3,8) and (-5,-7).