$$
\begin{array}{c|c|c|}
\text{Time} & \text{Running Thread} & \text{Queue of threads} \\ & & \text{at the end (remaining time)} \\
\hline 0-20 & \mathrm{~A} & \mathrm{~A}(25), \mathrm{B}(15) \\
20-35 & \mathrm{~B} & \mathrm{~A}(25) \\
35-55 & \mathrm{~A} & \mathrm{C}(30), \mathrm{A}(5) \\
55-75 & \mathrm{C} & \mathrm{A}(5), \mathrm{C}(20)) \\
75-80 & \mathrm{~A} & \mathrm{C}(10), \mathrm{D}(50) \\
80-90 & \mathrm{C} & \mathrm{D}(50), \mathrm{E}(30) \\
90-110 & \mathrm{D} & \mathrm{E}(30), \mathrm{D}(30) \\
110-130 & \mathrm{E} & \mathrm{D}(30), \mathrm{E}(10) \\
130-150 & \mathrm{D} & \mathrm{E}(10), \mathrm{D}(10) \\
150-160 & \mathrm{E} & \mathrm{D}(10) \\
160-170 & \mathrm{D} &
\end{array}
$$