According to keplers second law which factor is constant as a line between a planet and the sun sweeps out two equal areas at different places as it moves along its orbit

The constant factor in Kepler's second law is the time it takes for a planet to sweep out equal areas. In other words, a planet will move faster when closer to the sun and slower when farther away, in order to maintain the equal areas.