A variable is just an uncounted number
The letter x behaves exactly like the number it will turn out to be: it can sit in a numerator (x/4), scale with a coefficient (2x/5), or multiply other factors (x²). None of the fraction rules notice the difference — the denominator still names the pieces, and the numerator still counts them. In x/4 + x/6, the rewrite to twelfths works identically: 3x/12 + 2x/12.
The one genuinely new skill is combining like terms after the rewrite. 3x and 2x are both x-counts, so they merge to 5x; but 3x and 2 are different kinds of quantity, so x/4 + 1/6 ends as (3x + 2)/12 — a sum over one bar, and a finished answer.