3x represents a positive whole number. Find the value of x such that the area is equal to half the perimeter.