Theory
When the desired subject appears in two terms, move both terms to the same side and take the letter out as a common factor. You cannot divide by the letter while one occurrence remains elsewhere.
For y = ax + bx, factorise the right side to x(a + b), then divide by a + b: x = y/(a + b), provided a + b ≠ 0.
If the subject is in a denominator, multiply both sides by the whole denominator before moving terms. Keep brackets so that every term receives the multiplication.
For y = (3x + 2)/(x - 1), multiply by x - 1: yx - y = 3x + 2. Bring x terms together: x(y - 3) = y + 2, so x = (y + 2)/(y - 3).
Restrictions matter. The original formula needs x ≠ 1. The rearranged rule requires y ≠ 3; in fact y = 3 cannot arise from the original formula. Check by substituting a permitted simple value.