The antonym of any given word is any word meaning the opposite of that word.
The antonym of the given words will be as follows-
(i) Flexibility – Inflexibility
(ii) Affordable – Unaffordable
Final Answer: The antonym of flexibility is inflexibility and affordable is unaffordable.