Answer:
200.0 g of A, and 21.00 g of B.
Explanation:
Let's call the grams of food A as x and the grams of food B as y, so the units of niacin and retinol in food A are the units per gram multiplied by the mass:
Niacin: 0.22x, Retinol: 170x
And in food B:
Niacin: 0.40y, Retinol: 95y
The total unitis of niacin is 52.4 and of retinol is 35995, thus:
0.22x + 0.40y = 52.4
170x + 95y = 35995
Let's multiply the first equation by -772.7, and sum with the second one:
-170x - 309y = -40490
170x + 95y = 35995
---------------------------------------
-214y = -4495
y = 21.00 g of B
Thus,
0.22x + 0.40*21.00 = 52.4
0.22x = 44
x = 200.0 g of A