Couting and probability

Suppose that I have 13 different spices in matching canisters and two spice racks.

The first spice rack is a square that holds 8 canisters. It has one hole in each corner and one hole in the middle of each side for spices. The whole square freely rotates and there are no distinguishing marks anywhere to differentiate one side or corner from another.

The second rack is a circle with 5 wholes evenly spaced around the perimeter. Again it can spin freely and there are no distinguishing marks to differentiate one whole from any other.

In how many different ways can I put my 13 spices into the two racks?

I need an explanation how to get to this answer? Thank you for the much needed help

Suppose that I have 13 different spices in matching canisters and two spice racks.

The first spice rack is a square that holds 8 canisters.
It has one hole in each corner and one hole in the middle of each side for spices.
The whole square freely rotates and there are no distinguishing marks anywhere
to differentiate one side or corner from another.

The second rack is a circle with 5 holes evenly spaced around the perimeter.
Again it can spin freely and there are no distinguishing marks
to differentiate one hole from any other.

In how many different ways can I put my 13 spices into the two racks?

First, we'll fill the square rack.

Choose 8 of the 13 spices.. . There are: . choices.

If we place them in a row, there would be: . ways.

Placed in a square, there are 4 "rotations" which are identical arrangements. .**

. . Then there are: . ways.

Hence, there are: . ways to fill the square rack.

To place the remaining 5 spices in the circular rack, there are: . ways.