How many valid passwords are there?

Description

Students are required to create 5 or 6-character long passwords to access the library. The letters must be from lowercase letters or digits. Each password must contain at most two lowercase-letters and contains no repeated digits. How many valid passwords are there? You are required to show your work step-by-step.