How many five-digit numbers can be formed from the digits $1,2,3, \ldots, 9$ that contain three odd and two even digits, if a) we allow the repetition of digits, b) we do not allow the repetition of digits.