Counting relations with prescribed domain and range
Problem.
Let A have 3 elements and B have 4 elements. Find N, the number of relations R from A to B with Domain(R) = A, Range(R) = B, where exactly two elements of A are related to exactly two elements of B each, and the remaining element of A is related to all four elements of B.
Note:
the sets in the original text were cut off. "All four elements of B" tells us that B has 4 elements, and A has 3, so we use A = {a1, a2, a3} and B = {b1, b2, b3, b4}.