In Example 2h, say that i and j, i ≠

In Example 2h, say that i and j, i ≠ j, form a matched pair if i chooses the hat belonging to j and j chooses the hat belonging to i. Find the expected number of matched pairs.