Lets imagine that our dices are colored, one white and other black, this will help us to understand our problem.
When we roll the dices, we can have 36 outcomes, because for the white dice we can have the numbers from 1 to 6 and the same for the black dice.
Lets see the probability to both dice roll the same numbers, we can have the followed results: