Cut through the pipe twice with a pipe cutter and remove a small section. Spread solder on the ends of the pipes and inside of the copper tee. The outlet faces in the direction of the shower, so fit the tee into the line.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.