The deceleration that Enterprise needs to make should be such that when it reaches Kingon's position, its speed matches Kingon's speed. Also, the duration of deceleration should be such that the above is achieved.
Let the duration of acceleration be 't' and the deceleration be 'a'
Intial velocity of Enterprise = 60 km/s=60000m/s
Final velocity of Enterprise = 20km/s=20000m/s
20000=60000+at
Or, a=-40000/t....(i)
Also, distance travelled by Enterprise in time t = 60000t+(1/2)at2
Distance travelled by Kingon in the same duration=20000t
60000t+(1/2)at2 - 20000t=110000
Or, 40000t+(1/2)at2 - 110000=0 .....(ii)
Substituting a=-40000/t from (i) in (ii), we get
40000t+(1/2)(-40000/t)t2 - 110000=0
Or , 20000t=110000
t = 110000/20000=5.5 seconds
a = a=-40000/t = -40000/5.5=-7272.73 m/s2 = -7.27 km/s2
Therefore, Enterprise needs to decelerate at 7.27 km/s2
The position(y axis) vs time(x axis) graphs of both Enterprise(blue) and Kingon (Red) are as shown below. To barely avoid ollision, the graphs of Enterprise and Kingon should be such that they barely touch each other. If the graphs touch each other at some time and position, this means both are at same location and collision tales place.
The graph for Enterprise has been drawn with acceleration =-7272.72 m/s

The Starship Enterprise returns from warp drive to ordinary space with a forward speed of 60...
The Starship Enterprise returns from warp drive to ordinary space with a forward speed of 53 km/s . To the crew's great surprise, a Klingon ship is 100 km directly ahead, traveling in the same direction at a mere 26 km/s . Without evasive action, the Enterprise will overtake and collide with the Klingons in just about 3.7 s. The Enterprise's computers react instantly to brake the ship. What magnitude acceleration does the Enterprise need to just barely avoid a...
The Starship Enterprise returns from warp drive to ordinary space with a forward speed of 52 km/skm/s . To the crew's great surprise, a Klingon ship is 130 kmkm directly ahead, traveling in the same direction at a mere 26 km/skm/s . Without evasive action, the Enterprise will overtake and collide with the Klingons in just about 5.0 ss . The Enterprise's computers react instantly to brake the ship. What magnitude acceleration does the Enterprise need to just barely avoid...
Review The Starship Enterprise returns from warp drive to ordinary space with a forward speed of 55 km/s To the crew's great surprise, a Klingon ship is 120 km directly ahead, traveling in the same direction at a mere 27 km/s. Without evasive action, the Enterprise will overtake and collide with the Klingons in just about 4.3 S. The Enterprises computers react instantly to brake the ship What magnitude acceleration does the Enterprise need to just barely avoid a collision...
Item 2 2 of 12 Review Part A The Starship Enterprise returns from warp drive to ordinary space with a forward speed of 50 km/s To the crew's great surprise, a Klingon ship is 140 km directly ahead, traveling in the same direction at a mere 21 km/s.Without evasive action, the Enterprise will overtake and collide with the Klingons in just about 4.8 s. The Enterprise's computers react instantly to brake the ship. What magnitude acceleration does the Enterprise need...