If repetition of digits is allowed, how many different ways 5-digit codes are possible with the condition that the first digit should be a multiple of 3 and the last digit cannot be zero.
a. 17496.
b. 27000.
c. 18000.
d. 30000.