Nicely done for the first half of your solution,
but after you found k = 12 you made a tiny mistake.
In order to find t, we substitute n by applying the given condition that n = 4.
This operation gives
Then we put them in a better order
At last we find t = 0.
So your work is basically okay but incomplete ~