Are these using nCr? If not what formula do I use?

P(20,x,23)=
P(x.23)=

you use that formula when you know what to do.

nCr

nPr