This is a basic question in combinatorics with a little trick. Consider the following triangular array of numbers:
How many paths from a 1 on the diagonal to the 10 in the lower right where we only step to the right or down are there? For example, here is a legal path:
Batominovski's edit:
Attempt: It looks like each path is associated to a sequence of down steps ($D$) and right steps ($R$) of length $9$. The example above corresponds to $DRDDDRRDD$. Can it be any sequence? What is a correct answer?



You can think the problem as start with the $10$ and follow the numbers in order until you reach $1$.
Then there is two ways for each step: up or left. Then there are $2^{10-1}=2^9=512$ ways. Done!