The triangular park has to be fenced with barbed wire. Find the cost of fencing, if 1 feet of the wire costs $3.