The figure shows the displacement y of a wave at a given position as a function of time and the displacement of the same wave at a given time as a function of position. Determine the frequency of the wave.