As current is in phase with the applied voltage, element X should be resistive with R=I0V0=5100=20Ω.
As current lags behind voltage by 90∘, element Y should be inductive with XL=I0V0=5100=20Ω
When X and Y are connector in series,
Impedance, Z=XL2+R2=202+202=202Ω
Now, peak current, I0=ZV0=202100=25A
Thus, the rms value of current is Irms=2I0=25A