Given: v=5 km s−1,ME=6.0×1024 kg
and RE=6.4×106 m
Let's say teh rocket will go till a height h.
Total energy is always conserved.
∴PER+KER=PEh+KEh
⇒(−GmMERE)+12mv2=(−GmMERE+h)+12m(0)2
[∵ velocity will be zero at h]
⇒h=REv22gRE−v2
=6.4×106×(5×103)2(2×9.8×6.4×106)−(5×103)2=1.6×106m
So, from the earth's centre it will be
RE+h=6.4×106+1.6×106=8×106m