This question actually comes from backyard composting. When choosing materials to compost the ideal ratio of Carbon to Nitrogen of the raw materials to make compost is 30:1. There are basically no materials that are 30:1 naturally, so you have to work with what you have. For instance, grass clippings are 20:1 and wood chips are 400:1.
My question is how to you determine the quantity $x_1$ of a material with a $C:N$ ratio $r_1$ as a function of the quantity $x_2$ of a second material with $C:N$ ratio of $r_2$ where the sum of the two materials will be $r_{1+2}$, in this case $30:1$?