Step 1 :Let the guard's position be \((-8, 1)\) and the direction vector be \(g = i + 2j\). The character starts at \((6, -5)\) and moves with a velocity vector \(v = -0.1i + 0.8j\) m/s.
Step 2 :Calculate the angle between the guard's direction vector and the vector from the guard to the character at each time step.
Step 3 :When the angle is within 40°, stop the loop and output the time t.
Step 4 :\(t = 14.32\)
Step 5 :\(\boxed{t = 14.32 \text{ seconds}}\)