Need to make sure I am figuring this problem correctly.I have to analyze the fat content and the protein content on three different items, here is one...

cookies weigh 340g and state 6g fat, I figured... 6x9=54 fat cal
54/340g x100%=15.88% fat content.

Is this the right way to handle this?

dunno where the 6x9=54 came from, but 54/340 is indeed 15.88% fat content

Yes, your approach is correct for calculating the percentage of fat content in the cookies. Here's a step-by-step breakdown of your calculations:

1. First, you calculated the total fat calories by multiplying the fat content (6g) with the conversion factor of 9 calories per gram of fat. So, 6g fat x 9 calories/g = 54 fat calories.

2. Next, to determine the percentage of fat content by weight, you divided the fat calories (54) by the total weight of the cookies (340g) and multiplied by 100%. So, (54/340) × 100% = 0.1588 × 100% ≈ 15.88% fat content.

Therefore, your calculations are correct, and you have determined that the cookies have a fat content of approximately 15.88%.