Question 1187316
This is incomplete work but enough for you to figure what to do.

<pre>
RED        r

YELLOW     y

BLUE      26

Total  r+y+26
</pre>

{{{system(r/(r+y+26)=3/8, AND ,26-y=12)}}}

.

.

.
{{{system(y=14,and, highlight(r=24))}}}