The code is obtained by adding the alphabetical positions of the letters. For GIVE: G + I + V + E = 7 + 9 + 22 + 5 = 43. Similarly, T + A + K + E = 20 + 1 + 11 + 5 = 37.