I am dilettanet in statistics But I need to analyze some lab data.

I am wondering if there is a method for comparing multiple criteria as a whole? For example, say I have 2 products, product A and product B. And I want to know if their composition is identical. Say they are composed of sugar, butter, and cocoa. I measure the following:

A

sugar 70, 80, 72%...avg=74%

butter 20, 25, 10 %..avg=18.3%

cocoa 10, 5, 18%....avg=11%

B

sugar 65, 90, 70%...avg=75%

butter 30, 5, 15 %..avg=16.7%

cocoa 5, 5, 15%....avg=8.3%

Now I want to know if the compositions of A and B are different.

Do I need to test each of the components separately using a t-test, say test hypothesis if sugar content in A is different from B etc, or is there a way to test the composition collectivelly?

I guess I have to test each component separately but I want to be sure.....Thanks.