How many 5-digit numbers can be formed from the digits 0, 2, 4, 5, 7 and 8 if the first digit is odd, the last digit is even, and repetition of digits is NOT allowed

2 * 4^3 * 4 = 512