Question 875391
The description is unclear.  Assign variables for lengths of the sides.  
x is one dimension
y is the other dimension
{{{x+2y=380}}}


If x is the longest side, then cost of the full fence is {{{14*2x+10*2y}}};
If y is the longest side, then cost of the full fence is {{{10*2x+14*2y}}}.


More information is needed.