For this question, you can simply multiply the two numbers together to get your answer, which is four. This can also be figured out just by listing the possibilities.
The first shirt with the first pair of pants
The first shirt with the second pants
the second shirt with the first pants
the second shirt with the second pants
The answer is 4 different outfits