A ball \(A\) is placed on the pool table as shown below. The walls are labeled as follows: wall \(1\) is the top wall, wall \(2\) is the right wall, wall \(3\) is the bottom wall, and wall \(4\) is the left wall.
If we hit the ball so that it bounces off the walls labeled \(1\), \(2\), \(3\), and \(4\) —in that order—and then stops rolling just before hitting the next wall, what region of the pool table can the ball reach? If the ball hits a corner, it also stops.
A point \(A\) is placed on the bottom edge of a cylinder, along the rim of the lower circle. Another point \(B\) is placed on the top circle, but opposite to opposite to \(A\), so that \(A\) and \(B\) are as far away as possible from each other.
Find the shortest path along the curved surface of the cylinder that goes from \(A\) to \(B\).