EDIT: Can a moderator please close/delete this question??

So I am trying to solve this problem: QUALPREL for SnackDown '19… Can anyone help me understand the problem more clearly since I keep getting Wrong Answer… For example, if the scores of 6 teams were:

5 4 3 3 3 2

Then how will the ranks be assigned? WIll they be:

1 2 3 3 3 4

or

1 2 3 3 3 6

If it’s the second one, and suppose the cut-off rank (K) is 4, then which teams will qualify? It would be helpful if someone could provide some more examples with an explanation…