This takes two steps. The period gives the semi-major axis, and the semi-major axis is the average of the nearest and the farthest distances. So the farthest distance is twice the average minus the nearest.
The orbit of a comet takes 8.0 years to go round once, and the comet passes only 0.20AU from the Sun at its nearest. How far does it go from the Sun at its farthest?