In their alliance with Poland before World War II, what did France and Great Britain agree to do?

stop the spread of communism in Poland
continue to rule over parts of Poland
give up their land in Poland
defend Poland if attacked