Set Relation Exercises

Suppose that A and B are sets with relations ~A and ~B, respectively. Suppose further that f: A → B is a function with the property that x ~A y if and only if f(x) ~B f(y).