Sonjia bought a combination lock that opens with a 4-digit number created with the numbers 0 through 9. The same digit cannot be used more than once in the combination. If Sonjia wants the last digit to be 7 and the order of the digits matters, how many ways can the remaining digits be chosen?