In exercises 1 and 2, find the coordinates of point P along the directed line segment AP to PB is the given ratio

1. A(-2, 7), B(-4, 1); 3 to 1

2. A(3, 1), B(8,-2); 2 to 3​