Hello
You need to delete the existing TMS configuration (if TMS is already configured) of the Q system. Use Tx SE06 to do that.
If the Q system is running on a different server then you need to get the transport directory accessible on this machine.
Call Tx STMS and include the system in the Domain Controller (DC).
Connect to the P system which is the DC and approve the Q system.
Once the system is approved you need to configure the "Transport Routes" from the DC.
You need to define the Consolidation Route and the Delivery Route.
Regards
RB