Synchronized Pipes

Pipes can be scripted to produce a pressure wave, P(t), starting at the left.  Find the function that matches the bottom wave.

Lower graph