The student should mark the end of the wavelength at the next compression on the longitudinal wave. This is because in a longitudinal wave, a compression is the point where the particles are closest together, representing the peak of the wave.
By marking the beginning of the wavelength at a rarefaction, which is where the particles are farthest apart, the student should mark the end of the wavelength at the next compression, where the particles are closest together. This represents one complete cycle of the wave from one rarefaction to the next compression.