Quantum thermodynamics of two bosonic systems