Using the arrangements formula, the number of distinct seating arrangements is:
1287.
<h3>What is the arrangements formula?</h3>
The number of possible arrangements of n elements is given by the factorial of the number n, that is:

When elements are divided and classified with repetition, the number of arrangements is given as follows:

In the context of this problem, the parameters are given as follows:
- n = 13, as there are 13 students in the class.
, as 8 of the students are wearing all blue.
, as 5 of the students are wearing all red.
Hence the number of distinct seating arrangements is calculated as follows:

More can be learned about the arrangements formula at brainly.com/question/20255195
#SPJ1