the security gate at a storage facility requires a 5 - digit lock code . if the lock code must consist only of digits from 1 through 7 , inclusive , with no repeated digits , and the first and last digits of the code must be even , how many lock codes are possible ?  Choose the most appropriate option
A) 120
B) 240
C) 360
D) 720
E) 1440

Rationale: x - x - x - x - x - - > there are 3 even digits from 1 to 7 , inclusive thus options for the first and the last x ' s are : 3 - x - x - x - 2 . other x ' s can take following values : 3 - 5 - 4 - 3 - 2 - - > 3 * 5 * 4 * 3 * 2 = 360 . answer : c .
Answer: C