For the first digit there are 7 choices. For the second digit there are 6 choices (because we can't use the same one again). And so on, until there is only one choice for the last digit.
The number of possible codes is this: 7*6*5*4*3*2*1 = 7! = 5040
184 students are male 40/100= x/460 you are going to divide 460 by 100 and you'll get 4.6 then you'll want to multiply 4.6 by 40 and you'll get your answer