Some equivalences worth remembering:
1)T is injective (1-1) <=> T(B) is LI for any basis B.
2)T is surjective (onto) <=> T(B) spans T(V) for any basis B.
3)T is bijective (invertible) <=> T(B) is a basis for any basis B.
What you are being asked to prove is (3). It hopefully should be clear that:
(1) and (2) together <=> (3).
The way I would prove:
If $B = \{v_1,\dots,v_n\}$ is a basis for $\Bbb R^n$, with $T(B)$ a basis as well, then $T$ is invertible; is like so:
Suppose we take any old $x \in \Bbb R^n$. By virtue of $T(B)$ being a basis, we have:
$x = c_1T(v_1) + \cdots + c_nT(v_n) = T(c_1v_1 + \cdots + c_nv_n)$, which shows $T$ is onto, since $x$ is arbitrary.
Now define, for any $x \in \Bbb R^n$:
$S(x) = S(c_1T(v_1) + \cdots + c_nT(v_n)) = c_1v_1 + \cdots + c_nv_n$.
Since $B$ is a basis, the linear combination in $B$ on the right is UNIQUE (so $S$ is well-defined). And:
$T \circ S(x) = T(S(x)) = T(c_1v_1 + \cdots + c_nv_n) = c_1T(v_1) + \cdots + c_nT(v_n) = x$
$S \circ T(x) = S(T(x)) = S(T(c_1T(v_1) + \cdots + c_nT(v_n))) = S(c_1T(T(v_1)) + \cdots c_nT(T(v_n)))$
$=c_1T(v_1) + \cdots + c_nT(v_n) = x$, that is:
$S = T^{-1}$.
Note this actually exhibits the inverse. Perhaps it might help to see an example:
Let $n = 3$, and let:
$T(x,y,z) = (x+y,x+z,y+z)$
Suppose $B = \{(1,0,0),(0,1,0),(0,0,1)\}$. Then $T(B) = \{(1,1,0),(1,0,1),(0,1,1)\}$.
I leave it to you to show this is indeed a basis. To explicitly give $T^{-1}$, we need to know how to express $(x,y,z)$ in terms of this basis. If:
$(x,y,z) = c_1(1,1,0) + c_2(1,0,1) + c_3(0,1,1) = (c_1+c_2,c_1+c_3,c_2+c_3)$
we get the 3 equations:
$x = c_1 + c_2$
$y = c_1 + c_3$
$z = c_2 + c_3$
which gives (how did I do this?):
$c_1 = \frac{1}{2}(x + y - z)$
$c_2 = \frac{1}{2}(x - y + z)$
$c_3 = \frac{1}{2}(-x + y + z)$
Thus $T^{-1}(x,y,z) = \frac{1}{2}(x + y - z,x - y + z,-x + y + z)$.