A shop takes 20% off and then adds 8% sales tax to the sale price. The discount is g(p)=0.8p and the tax is f(s)=1.08s. A $50 jacket becomes g(50)=40, then f(40)=43.20. Composing writes both stages as one rule: f(g(p))=1.08(0.8p)=0.864p, and 0.864×50=43.20, matching the two-step answer.
The notation reads right to left. In (f∘g)(x) the function next to x, which is g, acts first, just as the inner brackets of f(g(x)) are worked out first. To get a formula, substitute the whole expression g(x) wherever x appears in f. With f(x)=x2 and g(x)=x+1, f(g(x))=(x+1)2.
Composition is not multiplication. The product f(x)⋅g(x)=x2(x+1) uses the same input in both functions side by side; composition sends the input through one function and then the other. The order also changes the result: g(f(x))=x2+1 while f(g(x))=(x+1)2, and at x=3 these give 10 and 16. The shop example is an exception only because multiplying by 0.8 and by 1.08 can be done in either order.
Think of it like this. Composition is a relay race: the second runner cannot start until the first hands over the baton, and what the second runner carries is exactly what the first delivered. Swap the running order and the finish can change, just as (x+1)2 differs from x2+1.
Core idea. Composition feeds the result of the inner function straight into the outer function.