Solve for x.
We have the following ratio
25 / 15 = [7x - 40 ] / 18 cross-multiply
18 * 25 = 15 * [ 7x - 40] simplify
450 = 105x - 600 add 600 to both sides
1050 = 105x divide both sides by 105
10 = x