Yes, you figured it out by weight... Now if you multiply by how many calories you would get the feed conversion factor or its' protein % of calories.... again I contend that chickens do not eat by weight but by ENERGY (caloric) value.It is easy
Let say that the %of protein is:
Feed 20%
Egg 18%
Peas 15%
In the first example
Take the % of each and make an average it is because you have taken 100 gr of each.
But if you take different amounts let say
100 grams of feed 50 grams of egg and 180 gr of peas then you should do this:
20%=0.2
100 gr of feed x 0.2= 20 gr of protein
18%=0.18
50 gr of egg x0.18=9 gr of protein
15%=0.15
180 gr of peas x0.15= 27 gr protein
Then
(Total whigt of protein in grams/ total whigt )x100= the % of protein in the mix
(20+9+27/100+50+180=56/330=0.169
0.169x100=16.9% protein in the mix.