Mechanics of two pendulums coupled by a stressed spring