The solution is just messy, but straight forward.
Let h be the height of the rectangular part of the window.
Then d+2h+(1/2)πd = 35
and A=dh+(1/2)π(d/2)2
Use the 1st equation to express h as a function of d.
Substitute this expression for h in the area equation.
Differentiate A with respect to d and set the derivative=0 and solve for d.
This gives you the needed dimensions.