@w0lfshad3,
Assuming that you're drawing without replacement, that the 6 distinct numbers are also in the range 0-9, and that order doesn't matter, then I'd do it this way:
As you noted, the two equal numbers can be combined into a single distinct number.
So, we've got sets of 5 and 6 distinct numbers in the range 0-9, and we're looking for the probability that they overlap in exactly four places.
First, let's fix the set of 5 and compute the probability for selecting a set of 6.
There are C(10,6) ways to choose the set of 6.
There are C(5,4) ways to select 4 of the set of 5 to match.
There are C(10-5,2) ways to select the remaining two numbers that don't match.
Therefore, the probability is:
C(5,4) * C(10-5,2) / C(10,6) = 5 * 10 / 210 = 5/21
Let's do it the other way (fix the 6 and select the 5) to see that we get the same probability.
There are C(10,5) ways to choose the set of 5.
There are C(6,4) ways to select 4 of the set of 6 to match.
There are C(10-6,1) ways to select the remaining number that doesn't match.
Therefore, the probability is:
C(6,4) * C(10-6),1) / C(10,5) = 15 * 4 / 252 = 5/21
C(n,r) is the number of combinations of n things taken r at a time.