Two billiard balls A and B