a committee is reviewing a total of 40 x black - and - white films and 10 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 ?
n0 = 40.0
n1 = 10.0
t0 = n0 / 100.0
t1 = n1 + t0
answer = n1 / t1
print(answer)