Momentum is defined by the equation
p=mv
where p=momentum, m=mass, and v=veolcity
therefore,
The momentum of the basketball can be defined as p=mv
And, relative to the basketball, the baseball would be: p=(1/3)mv
Rewriting the baseball equation as 3p=mv gives you your answer.