Let T1 be the tension in the upper string and T2 on lower string. Let m be the new mass.
On upper string
Substituting the values we have,
mmax = 18 kg
Further on lower string
Substituting the values we have,
mmax = 14 kg
Lower of the two is 14 kg, therefore answer is 14 kg.