Add a gear connection after you create mechanism constraints.
These will be linear. Not sure if you will need a rotary element or not without trying it.
In that particular instance, being parallel and equal, you can also use an offset distance constraint.