Find the mean and variance of the random variable X with probability

Find the mean and variance of the random variable X with probability function or density f(x).

f(x) = kx (0 ≤ x ≤ 2, k suitable)