The propability is not my strength but, I remember that we have 1/36 to have 2 and 1/36 to have 12 as overall outcome.
so for not 2 could be
and for 6
=> think to 2 you have 1/6 for the first dice and 1/6 for the second so 1/36
Hope that it is useful