m = 2rg^2 – 5rx solve for x

I worked this problem, but I don't think its right and just can't figure out anything else.

I took the term -5rx and thought how can I get that x removed and alone so that I can get it isolated on one side to solve for x
To do this, I divided each term of the equation on both sides by -5r if you divide -5rx by -5r you get x alone

and I ended up with:

x = 2g^2/5 - m/5r

m = 2rg^2 – 5rx

5rx = 2rg^2 - m
x = (2rg^2 - m)/(5r)