I am divisible by four factors in addition to 1 an myself. I am 7 less than a number with a square array. I am less than 24. What number am I?

25-7 = 18

1*18
2*9
3*6