going up by 1 step: $u$
going right by 1 step: $v$
possibilities for 5 ups with right movements removed: $(u,u) \implies$ 2 consecutive ups and $(u) \implies $ 1 up isolated:
$(u),(u,u),(u,u)$ or
$(u),(u),(u),(u,u)$ or
$(u),(u),(u),(u),(u)$
possibilities for 4 rights is similar.
$(r,r),(r,r)$ or
$(r),(r),(r,r)$ or
$(r),(r),(r),(r)$
Case 1:
For $(u),(u,u),(u,u)$ the possibilities for rights is :
$(r,r),(r,r)$ (gives 1 possibilities with above u's for each order of $(u),(u,u),(u,u)$)
or
$(r),(r),(r,r)$ (gives 6 possibilities with above u's for each ordering of $(u),(u,u),(u,u)$)
or
$(r),(r),(r),(r)$ (gives 1 possibilities with above u's for each ordering of $(u),(u,u),(u,u)$)
So 8 possible r's are present for above defined u's: $(u),(u,u),(u,u)$.
there are 3 ways of arranging this u's. So $8 \times 3 = 24$ ways.
Case 2:
For $(u),(u),(u),(u,u)$ the possibilities for rights is :
$(r,r),(r,r)$ (gives 0 possibilities with above u's for each order of $(u),(u),(u),(u,u)$)
or
$(r),(r),(r,r)$ (gives 3 possibilities with above u's for each ordering of $(u),(u),(u),(u,u)$)
or
$(r),(r),(r),(r)$ (gives 2 possibilities with above u's for each ordering of $(u),(u),(u),(u,u)$)
So 5 possible r's are present for above defined u's: $(u),(u),(u),(u,u)$.
there are 3 ways of arranging this u's. So $5 \times 4 = 20$ ways.
Case 3:
For $(u),(u),(u),(u),(u)$ the possibilities for rights is :
$(r,r),(r,r)$ (gives 0 possibilities with above u's for each order of $(u),(u),(u),(u),(u)$)
or
$(r),(r),(r,r)$ (gives 0 possibilities with above u's for each ordering of $(u),(u),(u),(u),(u)$)
or
$(r),(r),(r),(r)$ (gives 1 possibilities with above u's for each ordering of $(u),(u),(u),(u),(u)$)
So 1 possible r's are present for above defined u's: $(u),(u,u),(u,u)$.
there are 1 ways of arranging this u's. So $1 \times 1 = 1$ ways.
Case 1: 24 ways + Case 2: 20 ways + Case 3: 1 way = 45 ways.