If the mass of ball A is 5kg and ball B is 75kg, how high should ball B be dropped from so that when B collides with A they stick together and travel to point X?

That depends upon what they are made of, and how far away X is, and the friction and elevation change (if any) getting there.

You have asked a very incomplete question.