We choose the last digit 1 way, (as 5).
We choose the first digit any of 5 ways {2,3,6,7,9}
We choose the middle digit any of 4 ways.
Answer: 1*5*4 = 20 ways:
235, 265, 275, 295,
325, 365, 375, 395,
625, 635, 675, 695,
725, 735, 765, 795,
925, 935, 065, 975.
Edwin