Class Distribution Problem

I was looking for the right approach of this question.