Divide the equation and provide a step through process

[tex]\\ \sf\longmapsto \dfrac{300x^{12}g^6a^4}{15x^{10}a^4g^{10}}[/tex]
[tex]\\ \sf\longmapsto 20x^{12-10}g^{6-10}a^{4-4}[/tex]
[tex]\\ \sf\longmapsto 20x^2g^{-4}a^0[/tex]
[tex]\\ \sf\longmapsto \dfrac{20x^2}{g^4}[/tex]