You know the marginal distribution of X and the conditional distribution of Y. Multiply the corresponding pdfs to get the answer.

Strictly speaking, though, it bothers me that they don't specify that by "at a random time" they mean uniformly distributed.