Step 1: Think of the relation as groups of friends:
Put the $10$ elements into groups where two elements are related if they are in the same group. This is an equivalence relation.
A group of $k$ elements gives $k^2$ pairs $(a,b)$. So we need group sizes that add to $10$ and whose squares add to $42$.
Step 2: List the possibilities by the biggest group:
If the biggest group has $m$ elements, the other groups share $10-m$ elements and must have squares summing to $42-m^2$.
$m=6$: remaining sum $4$, squares $6$. Try $4=2+1+1$: $4+1+1=6$. Works. Other splits of $4$ give $16$, $10$, $8$ or $4$.
$m=5$: remaining sum $5$, squares $17$. Try $5=4+1$: $16+1=17$. Works. Other splits of $5$ give $25$, $13$, $11$, $9$, $7$, $5$.
$m\le4$: the squares can total at most $16+16+4=36$, which is less than $42$. $m\ge7$ is too large.
So there are exactly two shapes: $(6,2,1,1)$ and $(5,4,1)$.
Step 3: Count using multinomial coefficients:
Shape $(5,4,1)$: choose $5$ people out of $10$, then $4$ out of the remaining $5$. That is $\dbinom{10}{5}\dbinom54=252\times5=1260$.
Shape $(6,2,1,1)$: choose $6$ out of $10$, then $2$ out of $4$, which is $\dbinom{10}{6}\dbinom42=210\times6=1260$. The last two people are two singleton groups, and this choice already counts them once.
Total $=1260+1260=2520$.
Final Answer:
There are 2520 such equivalence relations.
\[ \boxed{2520} \]