Let the five-digit number be Given that first digits of each number is Therefore, the number is
As the repetition is not allowed and and are already taken, the digits available for place are The number of possible digits at place is Suppose one of them is taken at now the digits possible at place is And similarly, at the possible digits are
∴The total numbers with given conditions