Since I'm assuming that its perfectly elastic, considering there's not enough information given, so I think that no energy is dissipated in the collision
hmax = h - d + { [ mpvp - mb√(2gd) ] / (mp+mb) }² / (2g)
9.4m questions
12.2m answers