The perimeter of a rectangular lot is 74 feet. The cost of fencing along the two lengths is $1 per foot, and the cost of fencing along the two widths is $3.50 per foot. Find the dimensions of the lot if the total cost of the fencing is $159.