There are $5$ students on a team for a math competition. The math competition has $5$ subject tests. Each student on the team must choose $2$ distinct tests, and each test must be taken by exactly two people. In how many ways can this be done?

Let's think step by step and output the final answer within \boxed{}.
user