How to calculate the mean molecular weight of the Sun
For your second question, it depends upon whether you are talking about composition by number, or composition by mass (the numbers you give are roughly the composition by mass).  If you want to get really specific, you can add in the other elements too.

To answer the first, you add them up proportionally.