i'm pretty sure there's a much better way to do this but here's my solution:
\(3^x=5 \text{ is equal to } \dfrac{\text{ln}(5)}{\text{ln}(3)}\)
\(5^y=9 \text{ is equal to } \dfrac{\text{ln}(9)}{\text{ln}(5)}\)
so, \(xy\) is equal to \(\dfrac{\text{ln}(5)}{\text{ln}(3)} \cdot \dfrac{\text{ln}(9)}{\text{ln}(5)}=\boxed{2}\)