If the number of combinations is with replacement, it means that the possibilities can be used more than once.
Example: Two balls are drawn from a bag containing three balls (green, blue, and red). This is with replacement.
Solution using a matrix: