Double Hydraulic Cylinder - displacement mates

Dear community,

I am struggling with a problem for quite a long time. I have a system in which there is a Double Hydraulic Cylinder and my goal is to have stems A and B entering their respective cylinder at the same time when I rotate my body (not present in the image for simplicity) around point 1.
Could you please give me a hint on how to conjugate these two mates?

Thank you in advance! Best regards

SolidworksAssemblies