27 + 13 = 3 × 13 + 1 = 40 kg.