x + y = 2 x + y = 4

> solve({x+y=2,x+y=4},{x,y});

Notice that when Maple can't find a solution, it returns a blank answer.