A food contains 550 grams of a mixture of two foods varieties, X and Y. Food X contains 20% carbohydrate and food Y contains 35% carbohydrate. If this diet provides exactly 140 grams of carbohydrate, then how many grams of food X are in the mixture ?
Let x be the number of grams of Food X in the mixture, then number of grams of food Y=(550-x)
Total carbohydrate = Carbohydrate from Food X + Carbohydrate from Food Y
140 = 0.2x + 0.35(550-x)
52.5 = 0.15x
x = 350