Organ pipe A, with both ends open, has a fundamental frequency of 310 Hz. The third harmonic of organ pipe B, with one end open, has the same frequency as the second harmonic of pipe A. How long are (a) pipe A and (b) pipe B? (Take the speed of sound to be 343 m/s.)