Given all factors of 12, the only one of the choices you are given that can work is B. None of the other choices are possible. Nothing wrong with this question. Since 26 (12x1), and 16 (6x2) are not options, the dimensions must be 4x3. Hence 14.
Doesn’t specify that the sides have to be integers.