A rectangle that has an area of 8 square units and a perimeter of 12 units, what are the side lengths of the rectangle?