It should be a 4” double wye with St. 45’s added to make a 4” double combination or you could buy a 4” double combination. Which ever way is cheaper.
Newer toilets will shoot water across the sanitary cross so they don’t allow it within a certain measurement from the toilets. One of yours is too close, I think the minimum distance is 18”, maybe more.
The sanitary tee directly under the toilet is wrong also. No sanitary tee should be laid on it’s back in the drainage system, some codes allow it if the vertical is vent only, yours isn’t venting, it’s receiving flow from the toilet above.