I'm trying to inverse a simple function but got stuck with some algebra I cant remember.

I've got f (x) = 2x-1/x -1 and so far rewritten it to y(x-1) = 2x-1 but got stuck here. Reading the solution it show the next step as (y-2)x=y-1 but I'm at a loss trying to understand how they arrived here.