The first step is to select five of the six kinds of marbles, and there is a method of C6 5=6.
Step 2, for each selected combination, there are 5! /5=24 arrangements.
(The reason for dividing by 5 is to consider the repetition after the lock is rotated. For example, 12345, 2345 1, 345 12, 45 123, 5 1234 are five different arrangements, but if 12345 is in a circle,
So, there are 6*24 kinds.