Area of rectangle = lw
Perimeter of triangle = side+side+base
Therefore
(2x-1)(x+8)=5x-1+6x+8+8x+15
2x^2+15x-8=19x+22
Then move all terms to one side and solve for x (quadratic formula)
2x^2-4x-7
(4+-6.6)/4
=2.7, -.7
I hope these answers are correct, but if not I hope I explained well enough for you to work out yourself
Hope this helped :)