Use CD4052 as a Multiplexer
It has two channels, X and Y, in multiplexer mode. X0 to X3 for channel X, and Y0 to Y3 for channel Y, are the four inputs for each channel. X and Y are the output pins for both channels. For both 4 cross 1 muxes, input pins A and B serve as common selection lines. These selection lines determine which input signal is shown on the output pin.
This is a working circuit diagram. We are getting output on X and Y pins according to the above table. You may also experiment with it with Proteus. As you can see, pins A and B on the selection line are equal to one. Multiplexer chooses X3 and Y3 inputs based on the selection lines. As a result, these inputs appear on output pins like X and Y.

CD4052 Multiplexer Circuit
Use CD4052 as a Demux
This ic can also be used as a 14 multiplexer. It's also known as a decoder. X and Y are used as input pins in this setup. X0-X3 and Y0-Y3 on the other hand, use an output pin for X and Y, respectively. The selection pins A and B determine which pin output will be shown. As a result, based on digital logic on selected lines A and B, output pins will be X1, Y1 or X2, Y2 or X3, Y3 or X0, Y0.
The functioning principle of the demux is depicted in this simulation figure. As you can see in the figure, input X=1 and input Y=1 are both equal to zero, as are selection lines A and B. As a result, input signals appear on X0 and Y0. In other words, we can modify the values of the selection line signal to change the output.

CD4052 Demux Circuit