How to detrend a two-sector and two-country model

You detrend it as always: every variable with its own trend. The problem is figuring out what the trend growth in this setup is. Usually, it should be a composite of the growth rates in the different countries. However, there might be restrictions on e.g. preferences and aggregation technology necessary to guarantee the existence of a well-defined balanced growth path.