X is the IF stage. It is the intermediate stage to change carrier frequency to lower frequency. Y is the amplifier. It increases the amplitude of the detected signal to compensate for the attenuation of the signal. The detected may, otherwise, not be strong enough to use.