finding the average

Average = (a+b)/2 = (20+30)/2 = 25.

Average = (a+b+c)/3 = (30+40+80)/3 = 50.