The number 12 can be broken up to x2∗y2, since the number of factors is (2+1)(2+1)=3⋅3=9. The three numbers do not work here since there are no possible outcomes.
Thus, we can have: 22∗32=36.
22∗52=100.
22∗72=196.
I do not think any more possible outcomes are there, and you can still check my work.
Thus, the answer is 36+100+196=332.