find the value of x on both problems please help this is urgent and please show work

Answer:
Step-by-step explanation:
1) the triangle is right, so we can use the Pythagorean theorem
x^2 + 24^2 = (16+x)^2
x^2 + 576 = x^2 + 256 + 32x
32x = 320
x = 10
2) the two segment are congruent, so
7x - 13 = 9x - 23
2x = 10
x = 5