A chef got 4 bags of onions. The red onions came in bags of 7 and the yellow onions came in bags of 3. If the chef got a total of 24 onions, how many bags of each type of onion did he get?


Help me please