How can I solve for X with a question with a form like this :

(2/x+1)+5 = 1/x

and also

x - 5/x = 4

I seem to struggle when they single something out with a denominator of 1 for example the +5 in (2/x+1)+5 and x in x - 5/x

First time posting btw

Hopefully, I'll receive some replies.