The sum of a whole number A and a whole number B is 30, and the ratio A : B is equivalent to 3 : 2. Find A and B.