I'm trying to show that the tensor product of sheaves commutes with inverse image. I've reduced the problem to the following isomorphism
$$f_*\mathscr{H}om_X(f^*\mathcal{N},\mathcal{P}) \cong \mathscr{H}om_Y(\mathcal{N},f_*\mathcal{P})$$
where $ f:X\rightarrow Y$ is a morphism of ringed spaces, $\mathcal{N}$ is a $\mathcal{O}_Y$ module, and $\mathcal{P} $ is a $ \mathcal{O}_X$ module.
I'm trying to prove this via the adjunction of $f^* $ and $f_ *$, but I'm unable to. Can someone guide me through the steps involved in constructing this isomorphism?