Function average2

Return the average of floats x and y.