On arranging all the letters of the words IS, AM, ARE, WAS, WERE in increasing order we get
AA, AE, EEI, MRR, SSWW as the code for corresponding words. On taking their positional equivalent, we get
IS = AA = 1+1 = 2
AM = AE = 1+5 = 6
Similarly for others