Complex no. Doubt

I got Q2 but am not able to get Q1 ,
For help here is something you get while solving Im(a)=0 , Re(z)=0 and Re(b)=0 i didn’t solve last condition so check it please .