According to maximum power transfer theorem in the AC circuit, to draw maximum power the load impedance must be complex conjugate of source circuit internal impedance.
Here purely resistive load is chosen, hence for maximum average power transfer, the load resistance is equal to the magnitude of source internal impedance.