A nice little function/word puzzle here. Had me infuriated for some time.
You can find a list of all 110 words that were submitted on Twitter, along with their A and B values at M Shah’s blog, here (you need to scroll down to Activity #3). Be careful of spoilers though, because the solution is given just after the list of words.