Whether or not order matters is an important detail:
Formulas:
Tip: Whether order does or does not matter may be inferred from whether the objects are distinguishable. If the objects are indistinguishable, then the order usually does not matter. For example, if a problem mentioned "$4$ red balls" these balls can usually be assumed to be identical, which means the problem is a combination problem. If a problem metioned "$4$ people", then we need to clarification from the context of the problem to whether these people are identical and whether this problem is a combination or permutation problem.
Tip: The denominator, $P_k^k$, in the combination formula accounts for the duplicates. This is because there are this number of "duplicated" cases, i.e. they are treated as the same because order does not matter within this $k$-object group. Accounting for duplicated cases is useful especially when not all objects are distinguishable (e.g. line up $3$ red and $4$ green balls). We will see some examples later involving this technique.
"Using two different approaches to count the same problem" is an advanced technique to prove some combinatorics identities. It will be discussed in the course 25 - Advanced Combinatorics. As a preview, the combination formula can be intepreted with this technique.
The problem to be solved: select $k$ out of $n$ people to form a line
Approach 1: this is the definition of permutation, therefore the answer is $P_n^k = n(n-1)\cdots(n-k+1)$ different ways.
Approach 2: let's compete this task by the following steps:
By the principle of multiplication, there will be $C_n^k\cdot P_k^k$ distinct ways in total.
Because these two approaches should both give the same answer, we have $$P_n^k=C_n^k\cdot P_k^k\implies C_n^k = \frac{P_n^k}{P_k^k}$$