Direct method of finding mean