Two digits in the most left position (1 or 5); Three digits in the next ("tens") position; and three digits in the next ("ones") position. In all, there are 2*3*3 = 18 such three-digit numbers.