Let $x=0$ and $x=l$ be the positions of the left and the right sources, respectively. Then, the superposition of the waves generated by both sources is given by
$$A[\cos(\omega t-k|x|)+\sin(\omega t-k|x-l|)],$$
where $k=\omega/c$ is the wave number and $c$ is the speed of the wave. Clearly, a standing wave is formed for $0\le x\le l$. In order that left traveling wave for $x<0$ vanishes and only right traveling wave for $x>l$ remains, we must have