First of all, the best thing to do is to split the question into its different components:
5 x q^2 x p^12 / 10 (q x p^3)^2
Next we want to get rid of the brackets. With indices there are several important rules, can you remember them? If you have indices to the power of something, you can multiply the two numbers, (p^3)^2 becomes p^6.
Now we have 5 x q^2 x p^12 / 10 x q^2 x p^6 and we can cancel the q^2s from the top and bottom and divide the top and bottom by 5 (when simplifying everything we do to the top must be done to the bottom).
We now have p^12 / 2p^6. When we divide indices we minus them, and we can now divide the fraction by p^6 leaving us with p^6/2.