By allowing the pendulum to wrap around a cycloid curve, we can constrain its mass to follow another cycloid (this, technically is because the evolute of a cycloid is a cycloid). As the cycloid is a tautochrone, the pendulums will have the same period no matter what their amplitude.
Try dragging one mass close to horizontal, while leaving the other close to vertical. Do you observe that they have the same period?