Match Line to Slope

Move points A and B to form a line with the given slope.