- If $K$ is compact then it is closed and bounded.
- $\sup K=s$ and $\inf K = t$ are limit points of $K$, as it is possible to construct a sequence in $K$ that converges to them.
- A closed set contains all it's limits points, hence $s,t$ is in $K$.
Am I missing something?
Your working seems fine.
You might like to explicitly state that $s$ and $t$ are finite because $K$ is bounded.