So, I have a problem that I'm working on and I can't seem to figure it out. We just started product topologies, so many properties are still new or unknown to me. Here's the problem:

Let and be topological spaces. If is compact relative to and , show that is compact relative to the product topology on .

I'm not seeing why being compact is sufficient for the whole product to be compact... Any help would be appreciated.