Let the speed of the person be v. As seen by the person, the edge of the galaxy is coming towards him at a speed v. In 20 years (as measured by the person), the edge moves (20 y) v and reaches the person. The radius of the galaxy as measured by the person is, therefore, (20 y) v. The rest length of the radius of the galaxy is 3×1020m. Thus,
(20y)v=(3×1020m)√1−v2/c2
or, (6.312×108s)2v2=(9×1040m2)(1−v2/c2).
Solving this,
v=0.9999996c.