EPG Exam 3 (Code)- #69

Can someone explain why the solution involves complex impedance (R + jX)? I was reviewing my notes from class 7 and saw that effective impedance can be calculated using: Z_eff = R pf + X_L * sin(cos⁻¹(pf)), which doesn't include an imaginary component when the power factor isn't 0.85. So when exactly do we use complex impedance versus just the magnitude of impedance to calculate the Voltage drop?