A square animal pen and a pen shaped like an equilateral triangle have equal perimeters. Find length of the sides of each pen if the sides of the triangular pen are sixteen less than twice a side of the square pen.
I keep ending up with x=16 but that would make the perimeter 48 and 64 unless I did this wrong