Glue for Two

Fred's formula for a new soft drink, which he hopes will make him rich, instead acts as a kind of glue.  Not only does Fred get stuck to Barney, but both of them become affixed to Barney's bowling ball.