Answer
There are $3,838,380$ ways for a player to select the 6 numbers.
Work Step by Step
The order in which the 6 numbers are selected is not important.
$_{40}C_6=\frac{40!}{(40-6)!~6!}=\frac{40\times39\times38\times37\times36\times35\times34!}{34!\times720}=3,838,380$