Suppose that is a compact subset of and is continuous. Prove that the set is a compact subset of .

I know that the set is bounded because is bounded, so I guess I just need to prove that is closed. I was thinking to take a sequence in the set and show that it converges in the set. This is what is confusing me because I don't know how to do this part. Thanks for any help in advance.