Linear equations or Average value