Consider two systems $A$ and $B$ in an insulated vessel with constant finite heat capacities $C_A$ and $C_B$, which are initially at different temperatures $T_{A1} \neq T_{B1}$ for the initial state $1$.
Then the combined system runs down to thermal equilibrium, so that the final temperatures of $A$ and $B$ are equal for state 2, $T_{A2} = T_{B2}$.
How can you calculate the entropy transferred to each system?
Take system $A$ for example. By definition, the entropy transferred to $A$ from states $1$ to $2$ is
$\int_1^2 dS = \int_1^2 \frac{\delta Q_{12}}{T_{bA}} $
where the boundary temperature of $A$ is $T_{bA}$. Is this correct? Do we need to know the boundary temperature as a function of time?