Solution:
The answer is (E). The smallest perfect cubes of the form 21ab2 and 15ab are such that a and b can only contain the factors 3, 5 and 7 (those contained in 15 or in 21). Let us set a=3l⋅5m⋅7n and b=3p⋅5q⋅7r (with non-negative integer exponents), so
21ab2=3l+2p+1⋅5m+2q⋅7n+2r+1
and
15ab=3l+p+1⋅5m+q+1⋅7n+r
All the exponents must be multiples of 3, and, in order to obtain the smallest value of a+b, they must be as small as possible. So we have the following systems
{l+2p+1=3k1l+p+1=3h1;{m+2q=3k2m+q+1=3h2;{n+2r+1=3k3n+r=3h3
The smallest non-negative integer solutions are p=0, l=2, m=1, q=1, n=1, r=2, so
a=32⋅51⋅71=315,
b=30⋅51⋅72=245
and
a+b=560.