This math question. I totally dont get it

<p>Answer is (B).</p>