Statement I: The 5th period of the periodic table contains 18 elements and not 32.
Statement II: n=5,l=0,1,2 and 3. The order in which the energy of the orbitals 4d, 5s and 5p increases is 5s<4d<5p. The total number of orbitals available are 9 and thus, 18 electrons can be accomodated.