Two open pipes of length 50 cm and 51 cm produce 6 beats when sounded together, find the speed of sound :