I am trying to solve the following problem from a textbook:
Let $S$ be a set with cardinality $2m$. Give a closed-form expression for the number of equivalence relations on $S$ where every equivalence class has two elements.
My approach thus far: Every equivalence relation partitions $S$ into $m$ different subsets/classes. Thus, counting the number of equivalence relations is equivalent to counting the number of ways of choosing $m$ different objects in a $2m$-element set. And this is given by $\binom{2m}{m}$.
Is my approach correct? If not, how can I solve this problem? I would appreciate any help on this!