a bowl contains equal numbers of red , orange , green , blue , and yellow candies . kaz eats all of the green candies and half of the orange ones . next , he eats half of the remaining pieces of each color . finally , he eats red and yellow candies in equal proportions until the total number of remaining candies of all colors equals 20 % of the original number . what percent of the red candies remain ?
n0 = 20.0
t0 = 2.0 + 3.0
t1 = 100.0 / t0
t2 = t1 / 2.0
t3 = t2 / 2.0
t4 = t2 + t3
t5 = n0 - t4
t6 = t5 / 2.0
t7 = t6 / t1
answer = t7 * 100.0
print(answer)