The following figure depicts the "original" arrangement when both rectangles are placed in the same coordinate system (red) with their centers in the origin:
.$$
Where does this circle hits the straight $y=y_b$? Now, you have two points: the upper right corner of the blue rectangle and the crossing point mentioned above. Can you calculate the angle between the two red lines?