(a) Find the maximum- likelihood estimator for u, the population mean, given a sample of size n from a population with f(x) = 1/B, 0<x<B. Estimate B by the method of moments.

(b)The sample 1.3,0.6,1.7,2.2,0.3,1.1 was drawn from a population with the density f(x) = 1/B, 0<x<B. What are the maximum-likelihood estimates of the mean and variance of the population?