The picture on the right I understand. That's a main stack.
You can use a copper by plastic nohub coupling to connect to it.
Or maybe it's a cast iron hub comming out of the concrete and you would use normal cast iron nohub couplings.
The one one the left worries me. Is there writing on it, and what does it say?
That one could use a bigger picture.