The rule applied by the function f(x) is that it takes a word as input and returns the capital city of the country or headquarters location of the company associated with that word.

