a box has exactly 100 balls , and each ball is either red , blue , or white . if the box has 12 more blue balls than white balls , and six times as many red balls as blue balls , how many white balls does the box has ?
"x = the number of red balls y = the number of blue balls z = the number of white balls from the first sentence we have equation # 1 : x + y + z = 100 . . . the box has 12 more blue balls than white balls . . . equation # 2 : y = 12 + z . . . thrice as many red balls as blue balls . . . equation # 3 : x = 6 y solve equation # 2 for z : z = y - 12 now , we can replace both x and z with y in equation # 1 6 y + y + ( y - 12 ) = 100 8 y - 12 = 100 5 y = 112 y = 14 there are 14 blue balls . this is 12 more than the number of white balls , so z = 2 . that ' s the answer . just as a check , x = 84 , and 84 + 14 + 2 = 100 . answer = 2 , ( c )"
divide(subtract(100, multiply(12, const_3)), const_4)