A story of three xbees; two emitters and one hub

And can you give me a example in code ? Having hard time understanding that with syntax