Answer
See answer below.
Work Step by Step
From the data given, we have
$23.985042\times\frac{78.99}{100}+24.985837\times\frac{10.00}{100}+25.982593\times\frac{11.01}{100}=24.31\ u$
Which is the value claimed to be the atomic weight of magnesium.