How to achieve relative synchronization of two axes

How to achieve relative synchronization of two axes,When the displacement of one axis changes, the other axis also has to change accordingly.
The absolute displacements of the two axes are not related, only ensuring equal displacement of the relative movement

Any of the gearing commands should work, such as Gear (Clutch by Time).