Plumbing toilet and sink into same drain
That 6’ run cannot be horizontal - it needs to slope, so either the wall end has to drop or the toilet end needs to be higher.

Your locality will specify the amount of slope in the regulations, however, some I have seen have a drop of about 6” across that distance. If the slope is too shallow, then things get stuck...