The perimeter of a square field is the same as that of a rectangular field. If the length of the rectangular field is 8 km and width is 5 km , calculate the area of the square field.​