I am trying this question on Linear Algebra Done Right:

In the solution, it said "Let $(w_1,...,w_m)$ be a basis of $W$" and do the work following.
My trial was
Suppose $T$ is surjective, prove $TS$ is an identity map on $W$. Let $w \in W$ and $v \in V$
$TS(w) = T(v) = w$
Then I said $TS$ is an identity map. I feel that it may be wrong. But I am not sure if this is ok.
Your answer is not the same as the solution because your answer doesn't solve the problem at all. You take a $w\in W$ and a $v\in V$ and you claim that $TS(w)=T(v)=w$ without explaining why would any of these equalities holds. Hint: in general, they don't.