The faces of a red cube and a yellow cube are numbered from 1 to 6. Both cubes are rolled. What is the probability that the top face of each cube will have the same number?

Total number of possible outcomes, n(S) = 36


Number of favorable outcomes, n(E) = 6



31