how do you factor an expression like 24+36
This is what your teacher might mean.
24+36=12*2+12*3=12(2+3)