When the line segement is dilated , the resulting line is parallel to the original line. Know that the the slopes of parallel lines are equal. Therefore, the slope of the line passing through (-2,10) and (7,4) is equal to the slope of the new line .
Basically, we will just have to compute for the slope using the points (-2,10) and (7,4).