The value of YZ in the triangle is 28
Similar triangles are in triangles that have equal corresponding sides and equal side ratio.
This means that the ratio of their corresponding sides are equal.
Therefore;
(2x + 2)/3x - 7 = 35/40
40(2x + 2) = 35(3x - 7)
80x + 80 = 105x - 245
80x - 105x = -245 - 80
-25x = -325
divide both sides by -25
x = -325/-25
x = 13
YZ = 2x + 2
YZ = 2(13) + 2
YZ = 26 + 2
YZ = 28