How many numbers divisible by 5 and lying between 4000 and 5000 can be formed from the digits 4,5,6,7 and 8?
25
Clearly, a number beween 4000 and 5000 must have 4 at thousand's place. Since the number is divisible by 5 it must have 5 at unit's place. Now, each of the remaining places (hundred's and ten's) can be filled in 5 ways.
Hence, total number of required numbers = 1 x 5 x 5 x 1 = 25.