Break it down depending on many digits the number has.
*If 1 or 2 digits, the 300+ condition automatically fails, so there is nothing to count.
* For 3 digits, 300+ forces the first digit to be 3, 4 or 5. Evenness requires the last digit to be 2 or 4. That's 3 choices for the first digit, 2 choices for the last, and the middle digit can be anything, so there are 3*5*2 = 30 such numbers.
* For more than 3 digits the 300 condition is automatically satisfied, so while you still have only 2 choices for the last digit, the rest of them can be anything.
* So 4 digits is 5*5*5*2 = 250
* And 5 digits is 5*5*5*5*2 = 1250
I'm guessing your original problem statement said your number also had to have 5 or fewer digits because if you stop here, 30+250+1250 = 1530.