A square has a perimeter of 40. A second square has an inscribed circle with an area of 64 pi. What is the ratio of the length of a side of the first square to the length of a side of the second square?