Magnitude Value vs Complex Number Value

I get really confused that sometimes we use only the magnitude values and other times we have to use the complex value, even arbitrarily choosing an angle.

One example is homework 4.2 step a) vs step b). On step a) we have to calculate for the line current IL using magnitude values of the apparent power S and line voltage VL. However, on step b) we have to use the complex number (vector) values to calculate the stator voltage Eo (while assigning 0° to E). I understand that if we didn’t use complex values on step b) we would get the wrong value.

Is there an obvious reason/rule that I have missed that clearly spells out which one to go with each time? How do you know which to go with when you are going through the homeworks, exams, and exercises?

Thanks in advance!