Assuming that the other adjacent side to the 40° angle is the hypotenuse (it looks to be the greatest side )
The angle opposite the side of 128 ' = 50°
We can use the Law of Sines to find d
d/ sin 40 = 128 / sin 50
d = 128 * sin 40 / sin 50 ≈ 107.4 '