Unless it is _given_ (e.g. in the problem statement) that $a,b\in\mathbb R$, you can't assume it. So if $a=1+i\
otin \mathbb R$ and $b=7\in \mathbb R$, your tabular method should yield $\\{7\\}$, not $\\{1+i,7\\}$. If nothing about $a,b$ is specified, you'd have to answer with listing various cases (according to if/which/how many of $a,b$ are real).