For each of the 3 choices of hat there are 2 choices of shorts. Therefore there are 3 * 2 combinations of hat and shorts. Each of these 3 * 2 combinations of hat and shorts can be combined with each of the 5 choices of shirt.
Therefore the number of combinations of 1 hat, 1 shirt and 1 pair of shorts is given by: