Ok, I'm stumped. Frustrated.

I have a bunch of a single type of item (to which a cost is associated) which breaks down into raw materials. So in this example, lets say i have 27 clams (which I buy for $5 each) and after opening the clams, I have 35 bronze pearls, 13 silver pearls, and 1 golden pearl (there are only 3 types of possible pearls). The clams will always have at least 1 pearl inside. It is possible to have more than 1 pearl inside, but they will never have 2 different TYPES of pearls (a silver AND a gold for example).

So getting to what I am trying to figure out:

I want to resell the pearls, so I am trying to figure out my cost of each of the types of pearls. Obviously, the golden pearls would sell for more because they are more rare, and although I can figure out what percentage of each of the pearls I have, I can't convert that percentage to a percentage of the total cost of the clams. And those percentages can be over 100% if I consistantly get more than 1 pearl in a clam.

When all done, if I multiply the number of each pearl by the cost (what I am trying to figure out) and add em together, they should equal the total cost of the clams.

Here are the percentages I know:

Bronze pearls: 130% (pearls to clams) and 71% (pearls to total pearls)
Silver pearls: 48% (pearls to clams) and 27% (pearls to total pearls)
Golden pearls: 4% (pearls to clams) and 2% (pearls to total pearls)

Here are the variables I am trying to figure out:

Bronze pearl cost: B
Silver pearl cost: S
Golden peal cost: G
(35*B)+(13*S)+(1*G)=$135 (27 * $5)
Help me figure out what B, S, and G is!!

Sorry for the stupid clam/pearl example, but I can't think of an easier way to explain it.

Thanks in advance.