How a payment is split
Each period, interest is charged on what is still owed. The payment covers that interest first, and the rest pays off part of the loan.
Early on, most of each payment is interest. As the balance falls, so does the interest, and more of the same payment goes to paying off the loan.