I understood them as two seperate problems and I did the first. Implicit in that is that x and y are both real (which is the usual convention).
If they are meant to be solved simultaneously then x and y are not real. You need to provide clarification: are they two seperate questions (x and y are real) or a single question (x and y are not real).