Hi guys

I've always been able to figure out what I need to do in Excel, but this one has got me stumped. Basically, I have two arrays, and I need to return back the common values. For example:
{0, 0, 0, 4, 0, 0, 7, 8, 9}
{1, 0, 0, 4, 0, 0, 0, 0, 9}
In this example, 4 and 9 are the common values. Yes they're also the same index and that can be optional for me (ie if there's a way to do it when they're not the same index then it's not a problem too). I need to be able to return and display something like "4 9" to a cell.

How to do this?

Thanks guys