Sam has the letters S,A, and M to make a 5 letter password.
He uses the following rules for letters in his password:
The letter S is used once.
The letter A is used twice
The letter M is used twice.
The two M letters have to be either both in even-numbered positions or both in odd-numbered positions.
How many different passwords can Sam make?