The substituent X increases electron density in benzene ring by hyperconjugation effect and substituent Y decreases electron density in benzene by resonance effect. X and Y respectively are
Show Hint
\[
-CH_3
\]
is activating due to hyperconjugation.
\[
-NO_2
\]
is strongly deactivating due to the $-R$ effect.