Two simple pendulums A and B having lengths l and l/4