7m + 2n = (2m)/p
To express m in terms on n and p, bring all the figures with "m" before the "=" symbol and transfer all other things to the right side after the "=" symbol.
The first thing to do when there is fraction is to multiply all the sides with the denominator of the fraction, in this equation, it is p. So,
p ( 7m + 2n ) = p (2m)/p
7mp + 2np = 2m
7mp - 2m = -2np ★--> factorize 7mp -2m so that you can have only m there
m (7p - 2) = -2np
m = (-2np)/(7p-2)