The point with such "coordinates", whether there are 2, 3, or 10000 is that you can treat each coordinate separately.
If you have A=(3,7) and B=(7,15) and want to find a point that divides AB in a "2:5 ratio", look at the x-coordinates, 3 and 7, first. You want to find a number that divides the interval from 3 to 7 in a "2:5 ratio", That means that you want to find a number that is 2 "intervals" from 3" and 5 "intervals" from 7. What are "intervals"? Whatever size fits. The distance from 3 to 7 is 7-3= 4 and that has to be divided into 2+5= 7 intervals: each interval has length 4/7. 2 intervals would have length 2*(4/7)= 8/7 so 2 intervals from 3 is 3+ 8/7= 29/7. 5 intervals would have length 5(4/7)= 20/7. Notice that 7- 20/7= 49/7- 20/7= 29/7 again. If we define an "interval" as 4/7, start at 3 and go up or start at 7 and go down, we get the same thing: 29/7.
29/7 divides the interval from 3 to 7 into 2 parts, in the ratio of 2:5. This is sometimes called a "weighted" average. If our point divides 3 to 7 in a "2:5 ratio", we clearly want it closer to 3 than to 7. That means, in calculating the value, we need to give 3 more "weight" than 7. Do that by multiplying 3 by the "5" of "2:5" and multiplying 7 by the "2". 5(3)+ 2(7)= 15+ 14= 29. Now divide by 2+5= 7 so that this is an "average": 29/7 as before.
Now do the same with the y-coordinate: we want a y value that will divide the interval from 7 to 15 in a "2:5 ratio". Okay 5(2)+ 2(15)= 10+ 30= 40 and we divide by 2+5= 7: the y coordinate is 40/7.
The point that divides the interval from (3,7) to (7,15) into a "2:5 ratio" is
(29/7, 40/7).
(Although it is not neccesary to do it, if you were to calculate the distance from (3,7) to (7,15), you would find that (29/7, 40/7) divides the distance into a "2:5 ratio" also.
Going back to your original question, "find a point that divides the interval from A = (1, - 2,4) and B = (8,12, - 3) into a 2:5 ratio", do exactly the same thing:
x-coordinates are 1 and 8. 5(1)+ 2(8)= 5+ 16= 21. 21/7= 3.
y-coordinates are -2 and 4. 5(-2)+ 2(12)= -10+ 24= 14. 14/7= 2.
Z-coordinates are 4 and -3. 5(4)+ 2(-3)= 20- 6= 14. 14/7= 2.
The point that divides the interval from (1, - 2,4) to (8,12, - 3) in a "2:5 ratio" is
(3, 2, 2).
Notice that the order of the points is important. Saying that the point divides the interval from (1, - 2,4) to (8,12, - 3) in a "2:5 ratio" means the point must be close to (1, -2, 4) (because 2 is less than 5).
If the problem said "divide the interval from (8,12,-3) to (1,-2,4) into a "2:5 ratio", we would calculate:
5(8)+ 2(1)= 40+ 2= 42. 42/7= 6.
5(12)+ 2(-2)= 60- 4= 56. 56/7= 8.
5(-3)+ 2(4)= -15+ 9= 7. 7/7= 1.
The point that divides the interal from (8,12,-3) to (1,-2,4) into a "2:5 ratio" is
(6, 8, 1).
If you were really good at drawing in 3-dimensional plots, you could mark those original two points, draw the straight line between them, divide it into 7 equal parts and find that the two points calculated are each 2 of those parts from the two end points and 5 parts from the other.