Inserting a connecting threaded water plastic pipe between two fixed ends
You use a fitting called a union.  

It allows you to thread a nipple into the elbow, and a nipple into the tee. Then you use the union to connect the two nipples.


photo courtesy of Wikipedia

They are available in many sizes and materials.