Jason unpacked 51 kilograms of bananas and apples. The bananas came in 9-kilogram bags and the apples came in 8-kilogram bags. In all, Jason unpacked 6 bags of fruit. How many bags of bananas and bags of apples did he unpack?
b = banana bags amount = 9 b
a = apple bags = 6-b amount = 8 (6-b) summed , the amounts = 51
9b + 8(6-b) = 51 solve for b then a = 6-b