The length of a rectangle is 3 times the width. If the length is increased by 4 cm and the width is decreased by 1 cm, the perimeter will be 102. find the dimensions of the original rectangle

If the width is w, then

2(w-1 + 3w+4) = 102