This problem requires a picture in order to solve it.
I provided the essential picture, yet I am getting complaints about posting a picture.
I am assuming that you all did not even attempt to think about this problem.
What else would you like? The problem is stated very succinctly in the textbook as post 1 without more or without fewer words.
The pictures are my attempts at deriving the answer to this NOT simple problem.