How many 5-digit numbers are there, where the leftmost digit and the rightmost digit are both even?
You should have:
4 choices for the first digit x 10 choices for the 2nd x 10 choices for the 3rd x 10 choices for the 4th x 5 choices for the last digit ==20,000 such numbers.