A rectangle which measures 18 cm by 8 cm has the same area as a square. Find which figure has the greater perimeter and by how much.