The green bar has unchanged direction during rotation.
The gears have the same tooth number and the same distance of their pins to their rotation axes.
Assembly requirement: there is mechanism position where pin axes and gear rotation axes are on a plane and both pins are in the middle (or outside) of the gear center distance.
If not the green bar has complicated motion. See:
Gear and linkage mechanism 8b