01 · Two checks, not one
Lenders run two checks, and lend the lower figure.
The first check is a ceiling based on your income. The second is an affordability assessment based on what you spend. The amount a lender offers is whichever of the two is lower.
That is why two people on the same salary can be offered very different amounts, and why two lenders can give the same person different answers.