Determination of atomic mass

Atomic mass can be determined by applying the following formula.

Atomic mass = (w1A1 + w2A2)/(w1+w2)

If the weight is given in terms of weight percentage replace w1 as w1% , w2 as w2 % and (w1 + w2) as 100 respectively in the above equation.