At four seconds the bottom wave has moved to the right 4 cm from its initial position, while the top wave has moved 4 cm to the left from its initial position. Since the individual waves overlap, we are careful to add the contributions.
How to get the four-second string configuration.
At the time of five seconds the bottom wave is 5 cm to the right of its original position and the top wave is 5 cm to the left of its initial position.
How to get the five-second string configuration.
Finally, at eight seconds the bottom wave is 8 cm to the right of its initial position, while the top wave is 8 cm to the left of its original posiition. As at two seconds, the waves no longer overlap.