Answer:
a) tex] \bar X = \frac{\sum_{i=1}^n X_i}{n}[/tex]
And replacing we got:

b)

And replacing we got:

Explanation:
Part a
For this case we can calculate the the unweigthed with the following formula:

And replacing we got:

Part b
For this case the weigthed mena is given :

And replacing we got:
