How can I make these 2 in to 1 outlet?

I have too many things going into one drain, how do I cut and connect these 2 so they join and make 1 pipe going into the gulley?

I have too many things going into one drain, how do I cut and connect these 2 so they join and make 1 pipe going into the gulley?