Combinations and Permutations of dice [closed]

Here's the question: A casino game rolls three 6-sided dice
a) How many possible outcomes are there?
b) Suppose a player wins if at least two of the three dice end up with the same number. How many possible winning outcomes are there?

I am still bit stuck on how to do this, and what formula to use.
Would anyone help me by explaining in a way that I am able to understand??
It would be much appreciated

Thanks


For a):

Since there are $6$ possible outcomes for each roll, the number of different (ordered) outcomes on 3 rolls is $6\cdot{6}\cdot{6} = 216$.

For b):

Hint: The easiest way might be to first compute the number of outcomes when the player does NOT win i.e. where all dice end up with different numbers.