Q)Rectangle beneath a semicircle- A rectangle is constructed with its base on the diameter of a semicircle with radius 5 cm and with two vertices on the semicircle. What are the dimensions of the rectangle with maximum area?

Note: Answer on the back of the book is, 10/root(2) and 5/root(2)

I need the complete explanation (all the work).

Thanks.