finish total mean and median