The isosceles triangle and the rectangle have equal perimeters. The triangle has x+5 on the left side. On its base it has x. The rectangle has x-1 on the left side. On the bottom, it has x+4.