To do this question I recommend dividing each number by the lowest prime number you can each time.
36/2=18
18/2=9
9/3=3
Since 3 is prime we stop there. The prime factors of 36 are therefore 2,2,3, and 3. I would write this as 36=2^2x3^2
22 is simpler as it is just 2x11