How to solve the problem of bill of material

How can I solve this problem

SolidworksBill Of Materials