A rod of length $30.0 \mathrm{~cm}$ has linear density (mass-perlength) given by
$$
\lambda=50.0 \mathrm{~g} / \mathrm{m}+20.0 x \mathrm{~g} / \mathrm{m}^{2}
$$
where $x$ is the distance from one end, measured in meters. (a) What is the mass of the rod? (b) How far from the $x=0$ end is its center of mass?