In a race of d metres, the ratio of the speed of A to B equals d divided by (d minus 20), and the ratio of the speed of B to C equals d divided by (d minus 10). Since A beats C by 28 metres, the ratio of the speed of A to C equals d divided by (d minus 28). Multiplying the first two ratios and setting them equal to the third gives d squared equals (d minus 20) times (d minus 10) times d divided by (d minus 28), which simplifies to 28d equals 20 times (d minus 10), yielding d equals 100. The result is 100 metres.