If you had solve(x+y=2 and x-y=3,x,y) then it returns "x=5/2and y=-1/2"
To extract the x value only from this answer, type as a new line:
x| x=5/2and y=-1/2
This reads as "x given that x=5/2 and y=-1/2" and it'll return just 5/2 on its own.
Your example of solve(x+y=2 and x^2-y=3,x,y) that had multiple solutions doesn't work in the same way, as when you do the "x|...." line, it doesn't know which value of x to pick, due to the 'or' answer
So, this'll only work when you have a solution of the form "x=... and y=..." and nothing else.
Nevil