The equation for the solution to dTB/dt = -h(TB-TT), where h is a constant and B stands for bag and T subscript stands for tank, is
(TB - TT)/(TB(0) - TT) = e-ht
You can see that the bag has a T = TB(0) at t = 0 and that it is TT as t --> ∞
We can solve for h using the data given:
h = -1/(2 min) * ln((26-24)/(27-24))
Once you have h, solve for t by inputting TB = 24.4. Good luck!