You can get two equations for conserved quantities. Solve them for the speeds of the comet at perihelion and aphelion?