We can resolve it by comparing the ratio of distance between the runners
$R:=$ Ram
$S:=$ Shyam
$H:=$ Hari
From the first run, we can see that Ram runs 100 meters while Shyam 85 meters in the same time, so the ratio is $$(I):\frac{R}{S} = \frac{100}{85}$$
From the second run, we get the ratio $$(II):\frac{H}{S} = \frac{100}{80}$$
Using $I$ and $II$, we can create a system of equations: $$ \left\{\begin{matrix}
R = \frac{100S}{85}\\
H = \frac{100S}{80}
\end{matrix}\right.$$
Now, dividing both sides, we get: $$\frac{R}{H} = \frac{\frac{100S}{85}}{\frac{100S}{80}} \Leftrightarrow H = \frac{100}{80}\frac{85}{100}R \Leftrightarrow H= \frac{17R}{16}$$
Now, se can see that Hari is $\frac{17}{16}$ times faster than Ram. If Hari runs 100 meters, we get: $$H: 100 = \frac{17R}{16} \Leftrightarrow R = \frac{1600}{17} \approx 94.1176471 \text{ meters}$$