how is the wavelength of a longitudinal wave measured?

A. crest to crest or through and through
B. beginning to end
C. middle to middle
D. both A and B

D. both A and B