This question needs some clarification. Velocity and speed are different things, and the data given in the question are not sufficient to compute velocity, only speed. So, I will assume they are asking for speed.
The average speed, sav, of an object over some time interval is defined as the total distance traveled divided by the time that it took. For this question, we get
sav = (8.864 km) / (0.297 min) = 29.845 km/min.
But they requested an answer in units of meters per second, so we need to convert to these units:
sav = (8864 m) / (0.297 min × 60 s / min) = 497 m/s
(Here we only report three significant digits because the time had only three.)
Note that the distance can be accumulated along any path, not just a straight line. You can imagine a thin string that traces out the exact route taken, and the distance would be the length of this imaginary string, regardless of what contorted shape the path might have been. It is this distance that is used to compute the average speed.
This is in contrast with the average velocity, vav , which is defined as the displacement divided by the time. Displacement, unlike distance or path length, is a vector that points from the starting position to the ending position. It doesn't matter what path was taken to get there, only the final position relative to the starting position. In fact, if an object travels around a closed path, like a racecar completing one lap of a track, then the displacement is zero, since the ending point is the same as the starting point!
Because displacement is a vector, so is the average velocity. Vectors have a direction as well as a length or magnitude. We don't have enough information in the problem to determine the direction of the fighter jet, so assume they are really asking for speed instead of velocity.