Let $Z$ a random variable which is $\mathscr{p}$-measurable and bounded almost sure, ie, there is a positive number $M$ such that $|Z| \leq M $ a.s.Then show thatfor the conditional expectation $$Y = \mathbb{E}[X|\mathscr{p}]$$ we have : $$\mathbb{E}[YZ] = \mathbb{E}[XZ]$$
and more general if $Z$ is $\mathscr{p}$-measurable and $$\mathbb{E}[|ZX|]< \infty$$ then the equality to be proven is still true.
For $Z$ that is an indicator this is the definition of conditional expectation. For a general bounded $Z$ you can approximate it uniformly by a linear combination of indicators. Any non-negative $Z$ is a monotone increasing limit of bounded variables. Finally for a general $Z$ (with $|ZX|$ integrable) express it as a difference of two non-negative variables (with the same property.) It might help to first reduce to the case where $X \ge 0$.