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