The rule applied by the function f(x) is that it takes a word that refers to a city and returns the capital of the country where that city is located.
