Aime F. answered 02/07/23
PhD in Physics (Yale), have taught Methods of Engineering Analysis
For the bullet, conservation of momentum gives mv = (m + M)V to solve for v.
For the basketball, the impulse is m(v₂ – v₁), keeping in mind that in this case v₁ and v₂ have opposite signs.