yellow beans in the first bag = 26 * 50% = 13
yellow beans in the second bag = 28 * 25% = 7
yellow beans in the third bag = 30 * 50% = 15
--------------------------------------------------------------------
all yellow beans in all bags = 13 + 7 + 15 = 35
all beans in all bags = 26 + 28 + 30 = 84
percentage of yellow beans = (35/84) * 100% = 42%