A rectangular garden is fenced on three sides with fencing that costs $9 per foot. The third side is walled off with a trellis that costs $11 per foot. If the perimeter of the garden is 46 feet and it cost $430 to construct it, what are the dimensions of the garden?