Let the price of good mangoes be \( x \) per kg. Therefore, the price of medium quality mangoes is \( \frac{x}{2} \) per kg. The shopkeeper buys:
Total cost price for the shopkeeper = \( 80x + 20x = 100x \).
The selling price per kg is 10% less than the price of good mangoes, so the selling price per kg = \( x - \frac{10}{100}x = 0.9x \).
Profit = Selling Price - Cost Price = \( 108x - 100x = 8x \).
Profit Percentage = \( \frac{\text{Profit}}{\text{Cost Price}} \times 100 = \frac{8x}{100x} \times 100 = 8\% \).
Therefore, the overall profit is 8%.