The sum of the lengths of the edges of a cube is equal to half the perimeter of a square. If the numerical value of the volume of the cube is equal to one-sixth of the numerical value of the area of the square, then the length of one side of the square is:
A31.5 units
B36 units
C18 units
D27 units