(a) Find the semimajor axis of the orbit of the comet in astronomical units (1 AU is equal to the semimajor axis of the Earth's orbit).
(b) If the comet is 0.60 AU from the Sun at perihelion, what is its maximum distance from the Sun and what is the eccentricity of its orbit?

The answers are (a) 17.3 AU and (b) 34 AU; 0.965. I've forgotten how to solve for these answers. Any help is appreciated.