We have the comet's range from 0.59 to 35.3 astronomical units.
Now the question says that Halley's comet is orbiting in an elliptical orbit.
Here we will not convert AU (astronomical unit) into miles or kilometers.
Let the perhelion (the point in the orbit of a planet, asteroid, or comet at which it is closest to the sun) = 0.59 AU
Let the aphelion (the point in the orbit of a planet, asteroid, or comet at which it is farthest from the sun) = 35.09 AU
1. Now, the length of the major axis is given by:

so, length of the semimajor axis
AU= 'c'
And the distance from the center of the ellipse to the Sun
AU
2. [ The co-ordinates of the Sun = (17.355 , 0 )
We need to find the length of the semi-minor axis i.e 'b'.

Putting the values of 'c' and 'a' in the equation we get:
AU
Therefore, our equation for the orbit of the comet Halley is given by:
(We will use the general equation of the ellipse and plug in the values of 'a' and 'b'. )

NOTE: For the convince we have not converted AU into miles or kilometers.