a) An observer on Earth would see the rocket travel the normal distance, in a dilated time period. You would calculate the time taken to complete the journey using v=d/t. And then use the time dilation formula to calculate the dilated time.
b) An astronaut on the rocket would see the path of the rocket to be contracted, and would record the time taken to be normal. You would calculate the contracted length, and then use v=d/t to determine the time taken.