Imagine a Vertical 4" pipe coming up the basement wall and making a Wye about 1 ft from the ceiling..
Left to the 2nd floor toilet and sink.
Right is going to the 1st floor toilet, about 2 ft...