PLEASE HELP simple geometry problem

Perimeter is adding the 3 sides together. Since both triangles have the same perimeter set both triangles to equal:
(x+3 + x+3 + x+3) = (x+3 + 2x-3 + x)
Simplify each side:
3x+9 = 4x
Subtract 3x from each side:
x=9