A regular hexagon has a perimeter of $p$ (in length units) and an area of $A$ (in square units). If $A = 3,$ then find the side length of the hexagon.