Center of the yellow and pink bars revolution joint moves along a approximately straight line.
Radius of the small gear: a
Length of the green crank: a
Radius of the big gear: 2a
Length of the pink bar: 3a
Length of the blue bar: 8a
Length of the yellow bar: 9a