A triangle and a rectangle have the following conditions. The base length of an isosceles triangle is 10 meters shorter than twice the leg length. The width of a rectangle is equal to the leg length of the triangle. The length of the rectangle is 10 meters longer than twice its width. What measurements of the sides of the triangle and the sides of the rectangle will make their perimeters the same?