we have
radius sphere A
\(rA=24\ cm\)
radius sphere B
Divide the diameter by \(2\)
\(rB=\frac{42}{2} =21\ cm\)
we know that
the scale factor is equal to
\(scale\ factor=\frac{rB}{rA} \\ \\ scale\ factor=\frac{21}{24}\)
Simplify divide by \(3\) numerator and denominator
\(scale\ factor=\frac{7}{8}\)
therefore
the answer is
The factor is \(\frac{7}{8}\)