average value problems