A rectangular lot whose perimeter is 340ft is fenced along three sides. An expensive fencing along the lot's length cost $42 per foot. An inexpensive fencing along the two sides widths cost only $6 per foot. An inexpensive fencing along the two sides width cost only $6 per foot. The total cost of the fencing along the three sides comes to $5340. What are the lot's dimensions?