Neighbors are buying fencing for a community garden. The garden is an irregular shape with 5 sides of the following lengths: 9 yards, 25 feet, 12 yards, 4 yards, and 17 feet. The cost of the fencing is $42 per yard. Help them determine the cost of the fencing.