the length of a rectangle is twice its width w. A second triangle, which is 8cm longer and 3 cm narrower than the first triangle, has a perimeter 154 cm.

What is the dimension of each triangle.