if we think about it, the touching parts of the rectangle and circle are the corners
the distance between opposite corners is the diameter of the circle the radius would be 1/2 diameter so we just use the pythagorean theorem to find the legnth of the diagonal and thus the diameter then halve that to get radtius