The total number of possible outcomes equals the product of the possible outcomes for each dice. Then, that total number is equal to:

From those possible outcomes, only one combination gives 12 as a result, which is 6 on both dices.
Then, the probability that the sum will be 12, is equal to:
