Place the cogwheel matching the colors of the dots to the corresponding lines. Put your finger in the center and rotate it.

It fits the pentagon in the guides. Put your finger in the center and rotate it. Check how it rotates exactly like the gear.

Look at the route of the colored points of the cogwheel, compare it to the trajectory of the pentagon laces.

How many teeth does the spinning cogwheel have? How many teeth should the large wheel have fixed? Check it out.

Would it work the same if on the wheel we mark 6 points and the corresponding 6 diameters and rotate a hexagon?