Given triangleABC is congruent to triangleXYZ, if AB=3X-1, BC=5X+2, XY=7, and YZ=14, find X.

I assumed you were following the convention that the order of letters in triangle ABC would correspond with triangle XYZ

that is, AB = XY, AC = XZ etc
so 3x-1 = 7
x = 8/3, but
5x+2 = 14 gives us x = 12/5

contradiction!
Please correct your typing.