I need to find the perimeter of square that has a semicircle (located inside of the square) with a radius of 10 in and it appears that the square is 10 inches as well. I tried the equation 1/2*3.14*10= 15.7, 10 + 15.7 = 25.7 but I don't think it is correct please help!!

If the radius is 10 in., the diameter is 20 in. Is each side of the square 20 inches?