The given equation is:
[tex] \frac{q+5}{-3} * \frac{-3q}{q+2} [/tex]
Just multiply both numerators and both denominators respectively, with the bar line still between them. So, it becomes
[tex] \frac{(q+5)(-3q)}{(-3)(q+2)} = \frac{-3 q^{2}-15q }{-3q-6}
[/tex]
Then you factor out the equations:
[tex]\frac{-3 q^{2}-15q }{-3q-6} = \frac{-3q(q+5)}{-3(q+2)}
[/tex]
Simplify terms by dividing them. The negative sign and 3 cancels out. The answer would be:
[tex]\frac{q(q+5)}{(q+2)} [/tex]