Providing the densities was a red herring - they cancel out in the derivation of this formula, so have no affect on the final answer. Here's the correct answer: