Apply transformation from axis of one object to different axis of another object in Blender?
This is fairly easy using drivers. Look into that on docs.blender.org
Right click the property you want to drive from, and select “copy as new driver.“ Then go to the property you want to be controlled, right click, and click “paste driver.“