Hailey is putting up a fence in the shape of an isosceles triangle in her backyard. The fence has side lengths as shown, where x represents the number of feet in each fence section. The perimeter of the fence can be covered using 8 total fence sections represented by the expression 8x. If fencing costs $6.50 a foot, what would be the total cost of the fence?