Finding the length of the wire.

A wire 360 in. long is cut into two pieces. One piece is formed into a square and the other into circle. If the two figures have the same area, what are the lengths of the two pieces of wire?(to the nearest tenth of an in.) help guys, i can't figure this out (((