By conservation of linear momentum and angular momentum, we have
`mv+0=m.0+MVimplies=V=(mv)/M`
and `mvd=Iomegaimplies omega=(mvd)/I=(mvd)/((ML^(2))/12)`
since collision is elastic, therefore
`1/2mv^(2)=1/2 M((mv)/M)^(2)+1/2((ML^(2))/12)((mvd)/((mL^(2))/12))^(2)`
`implies m=(ML^(2))/(L^(2)+12d^(2))`