There was this problem on a test that I took recently.

But, I never learned how to solve this.

The problem was:
it gave the mass of a certain compound and stated that it had 92% carbon. then it asked for the theortical yield of Carbon.

mulitply the original mass by .92