There are a number of questions similar to this, but I'm asking about rolling two dice twice, not one die two times. Or I guess you could think of it as 4 dice total, with each pair distinguishable.
So Person A rolls two dice (d6) and gets some result between 2 and 12, with 7 being the most likely. Now Person B rolls two dice. What are the odds that Person B rolled the same number as Person A?
I've been trying to work this out for some time now, but it's been a while since I've taken Probability. (Do we have to do some conditional probability stuff here?)
Well, just go about it in the simplest way possible. There is no need for conditional probability here because the second roll is independent of the first.
If $X_1$ is the first roll and $X_2$ is the second one, the probability of them being the same is:
$$ P(X_1=X_2) = \sum_{n=2}^{12} {\left[ P(X_1=n) P(X_2=n) \right]} = \sum_{n=2}^{12} {\left[ P(X=n)^2 \right]} $$
because the probability functions are identical
Note that the value of $P$ depends on $n$ because some numbers are more probable than others when you have two dice. This is the only difference with the similar problem of single die rolls.