Find the mass and center of mass of a solid hemisphere of radius a if the density at any point is proportional to its distance from the base.