Hi again,
It's all in the grouping. Let me give a few examples...
A+B+C+D
Those four terms are all real, so the real part is A+B+C+D. They are all real because there is no 'j' multiplying any of them.
A+B+C*j+D
Here we have to group the terms that contain 'j' as imag and those that dont as real, so the real part is A+B+D and the imag part is C.
A+B*j+C+D*j
Here we have two terms that have 'j' multiplying them, and two that dont. The two that dont are real, and the two that do are imag, so the real is A+C and the imag is B+D.
A*j+B*j+C*j+D*j
Here everything is multiplied by j, so everything is imag and the real part is zero.
One way to look at it is we group all the 'j' terms together and that forms the imag part, and whatever is left over is real.
A+B*j+C*j+D*j
we can regroup this as A+j*(B+C+D) so A is real and B+C+D is imag.
When we have a numerator and denominator, we do the same thing except separately for each one.
(A+B*j+C*j)/(D+E+F*j+G*j)
we can regroup as:
(A+j*(B+C))/(D+E+j*(F+G))
and so real in the numerator is A, and imag numerator is B+C, and real in denom is D+E and imag is F+G.
Make sense?
Now you try one:
(A+B+C*j+D+E*j+1)/(F*j+G+H*j+3)
Find the real and imag in numerator, and real and imag in denominator.