Line your players up like the image to the left.
Two players(1 and 5) start with a ball, one under each basket. On the whistle, both players outlet to the near wing while running down the floor toward the far basket passing to the players on the sideline and receiving a return pass culminating with a layup on the far end. For example, the passing pattern for 5 would go:
5 to 6, 6 to 5, 5 to 8, 8 to 5, Layup
The player that makes that assists on the layup rebounds the ball and starts the same procedure up the same side of the floor.
See the animation below for a much better explanation.