Solve 5 take 2 over 7

Is this what you mean?

(5-2)/7 = 3/7

Or is it this?

5 - 2/7 = 4 5/7