Convert the base 10 number in the indicated base. 40 to base 2

I get so confused on how to do this.