This is not my answer, someone else answered this question before.
red:green
5:3 5+3=8 8 units 4qt=8 units divide by 8 0.5qt=1unit 5 unit=red 5*0.5=2.5qt, red=2.5qt 3unit=lime 0.5*3=1.5qt 1.5qt, 2/3 of that is yellow, 1/3 is blue, 1.5 times 2/3=1, 1.5 times 1/3=0.5 result: 2.5qt red 1qt yellow 0.5qt blue