Since "a" is on the top and the bottom, you can simplify that
[tex]\frac{a^2b^2}{ac}[/tex]
[tex]\frac{ab^2}{c}[/tex]