'...in a square'

A blue square is inscribed in a green square. What fraction of the area of the green square is occupied by the blue square? What fraction of the perimeter of the the green square is the perimeter of the blue square? A blue rectangle is inscribed in a green square. What fraction of the area of the green square is occupied by the blue rectangle? What fraction of the perimeter of the the green square is the perimeter of the blue rectangle?