a committee is reviewing a total of 30 x black - and - white films and 6 y color films for a festival . if the committee selects y / x % of the black - and - white films and all of the color films , what fraction of the selected films are in color ?
"say x = y = 10 . in this case we would have : 30 x = 300 black - and - white films ; 6 y = 60 color films . y / x % = 10 / 10 % = 1 % of the black - and - white films , so 3 black - and - white films and all 60 color films , thus total of 63 films were selected . color films thus compose 60 / 63 = 20 / 21 of the selected films . answer : b"
divide(6, add(divide(30, const_100), 6))