The five digit number is formed only when unit place is either 0 or 5 . Case I. When 0 is in unit place, then rest of numbers can be selected in ‌5P4 ways. =5!=120 Case II. When 5 is in unit place, then rest of numbers can be selected in ‌5P4 ways. =5!=120 And we have to subtract those cases in which 0 is in thousand place. The number of ways =‌4P3=24 ∴ Required number of ways =120+120−24=216