The perimeter of an isosceles triangle is 37 in. The lengths of the two

equal legs are 6 in. less than 3 times the length of the base. Find the lengths of the three sides.
37=2L+2W
W=3W-6

do i have this equation wrote right
when i try to solve it
the answers i get is
w=3
l=15.5
I feel like i maybe missing some thing here can anyone help me