I suggest you write the expectations with respect to which rv you consider it : for example.
So we actually have , we want to prove that
And we also have
But since X and Y are independent,
(I think this is where the positiveness of f intervenes, in order to apply Fubini's theorem)
And hence the equality.