We have,
Any 5 digit number 2,3,4,6,7
Total number is 5!=5×4×3×2×1=120.way
According to given questions
Total 4 digit number 5×4×3×2=120
Now,
Neglecting the numbers where 5 is at hundred’s place =6
Then,
120−6=114
Total numbers=114+120=234
Hence, this is the answer.