please show me how to solve for

5m/m+1 divided by 25m to 2nd power divided by m to 2nd power + 6m +5

You use the phrase "divided by" twice.

Do you mean
{[(5m/(m+1)]/25m}^2/(m^2 + 6m + 5) ?

If not, resubmit using parentheses and brackets to clarify what you do mean.

Note that m^2+6m+5 = (m+5)(m+1), so you might be able to cancel out (m+1) terms.