Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
All participating skaters are allowed to skate the first three distances; 12 skaters may take part on the fourth distance. These 12 skaters are determined by taking the standings on the longest of the first three distances, as well as the samalog standings after three distances, and comparing these lists as follows:
Skaters among the top 12 on both lists are qualified.
To make up a total of 12, skaters are then added in order of their best rank on either list. Samalog standings take precedence over the longest-distance standings in the event of a tie.