Suppose that f(x) = 0.125x for 0 < x < 4. Determine the mean and variance of X

Suppose that f(x) = 0.125x for 0 < x < 4. Determine the mean and variance of X.