Solved problems with amean and gmean