As the voltage leads the current, X must be inductor (L).
In RL circuit, `"cos" (pi)/(4) = (R )/(Z) = (1)/(sqrt2)`
`X_(L) = sqrt(Z^(2) - R^(2)) = sqrt(2R^(2) - R^(2)) = R`
Again, as voltage lags behind the current, Y must be a capacitor.
`"cos" (pi)/(4) = (R )/(Z) = (1)/(sqrt2)`
`X_(L) = sqrt(Z^(2) - R^(2)) = sqrt(2R^(2) - R^(2)) = R`
Clearly, `X_(L) = X_(C ) = R`
The circuit is purely resistive Impeance is minimum and current is maximum. Hence power dissipated in the circuit is maximum.