If $f\circ g$ is onto, does it follow that $f$ is onto?
I know what onto means: for every b, there is an a such that f(a) = b.
I have no idea how to apply that to this question. Pls help!!
Yes, it follows that $f$ is onto: Assuming $g\colon X \to Y$ and $f\colon Y\to Z$ with $f\circ g$ onto $Z$, it follows that $f$ is onto $Z$. Suppose $z\in Z$. Then there is $x\in X$ with $f(g(x)) = z$, but then $y = g(x)\in Y$ has image $z = f(y)$ under $f$. So $Z = range(f\circ g) \subseteq range(f) \subseteq Z$, so $range(f) = Z$.
To see it another way: the range of $f\circ g$ is the range of $f\!\restriction\! range(g)$ ($f$ restricted to $range(g)\subseteq Y$). This restriction of $f$ is a subset of $f$, therefore its range is a subset of the range of $f$.
$g$ might not be onto $Y$, but it fills up just enough $Y$: every $z\in Z$ comes from some $x\in X$ via $f\circ g$, and then $z$ comes from $y=g(x) \in range(g)\subseteq Y$.