A simple average treats every value as equally important. A weighted average lets some values count for more than others. Each value is multiplied by its weight, the products are added, and the total is divided by the sum of the weights:
Weighted average = (w₁x₁ + w₂x₂ + … + wₙxₙ) ÷ (w₁ + w₂ + … + wₙ)
The weight is whatever tells you how much each value matters. In a combined class average it is the number of students in each section. In a mixture it is the quantity of each ingredient. In an exam with weightage it is the percentage each part carries. Whatever the context, the arithmetic is the same.