140 / 100 * X = 56
X = 56 * 100 / 140 = 5600 / 140 = 40
The formula of a midpoint:
We have:
Substitute