Double diffusive and Marangoni convection in a multi-cavity system