Brain Teaser pt2

Re: Brain Teaser pt2

How did they come up with this answer? What’s the logical explanation behind it, if any? :confused: