A livestock pen is built in the shape of a rectangle that is 2 times as long as it is wide. the perimeter is 42 feet. if the material used to build the pen is $ 1.25 per foot for the longer sides and $ 2.50 per foot for the shorter sides (the shorter sides have gates, which increase the cost per foot), find the cost to build the pen.