The problem:
Prove or refute the following:
If $f,g,h: \mathbb{R} \to \mathbb{R}$ and $f \circ g \circ h$ is surjective then $f$ is surjective.
My solution: (The definition of surjective: iff $∀y ∈ T ,∃x ∈ S \implies f(x) = y$)
Let $f\colon A \to B$, $g\colon B \to C$ and $h: C \to D$.
Lets say $b ∈ A$, $a ∈ B$. We know by definition that $f(g(h(a)) = b$
Therefore $f(a) = b$, $g(a) = b$, $h(a)=b$, so $f$ is surjective.
I am kind of confused (as you can see from my solution) Please help, am I at least on the right track or completely wrong.