If anyone is curious about that one visible problem here is a solution.
We have some algebraic curve defined by its points (x,y) satisfying x²+2xy+5y²+2x+4y-5=0 (E). We seek the maximum value of x for a point on this curve. It is not explicitly said on which field (or ring) we are working, but...