By not using the digit 0, John has 9 digits left to choose from. By not using the letter m, John has 25 letters left to choose from.
The password pattern is <letter><letter><digit><digit><digit><digit>. Use the Multiplication Principle:
25 x 25 x 9 x 9 x 9 x 9 = 4,100,625