OK, first of all,
2(2w+4)+2(w)=2(w+3)+2(3w-5) > I doubled each part of the equation to account for the opposite side of the rectangle. I also set them equal because the question asked what value of w would make it equal.
4w+8+2w=2w+6+6w-10 > I just distributed in this step
6w+8=8w-4 > Here I simplified the equation
12=2w > more simplifying
w=6
Checking the answer to see that the perimeters are equal
2(6) +2[2(6)+4]=
12+2[12+4]
12+2[16]
12+32
44
2(6+3)+2[3(6)-5]
2(9)+2[18-5]
18+2(13)
18+26
44
I hope that helps you with your problem.