Suppose $$X = QZ + m + V$$ where $Z \sim \mathcal{N}(0, I_K)$, $Q \in \mathbb{R}^{M\times K}$, $m \in \mathbb{R}^M$ and $V \sim \mathcal{N}(0, \sigma^2 I_M)$. $Z$ and $V$ are independent.
I'm having trouble with one of the steps in a proof for the following expression for the expected value of $Z$ given $X$. $$E[Z\mid X=x] = (Q^TQ + \sigma^2 I_K)^{-1}Q^T(x-m).$$
The step I don't understand is: $$E[Z\mid X=x] = E[Z(X-m)^T]E[(X-m)(X-m)^T]^{-1}(x-m).$$
Is there a Bayes rule for expected values I can use? Can someone explain this step to me?
Edit: This is in the context of probabilistic principle component analysis. The data points $x$ are modeled as if they originated from a linearly transformed lower dimensional random variable ($Z$) plus high dimensional gaussian noise ($V$). So $M \geq K$ and $Q$ is assumed to be full rank.