Two pendulums problem explanation