It would help if you worded this problem so we can understand what you mean.
I assume you want to find the coordinates of a point, P, 3/4 the way up the line formed by (1,3) and (5,1).
The ratio 3:1 means it is 3/4 the way between point A(1,3) and B(5,1).
The equation of the line given by the two points A and B is \(\displaystyle y=\frac{-1}{2}x+\frac{7}{2}\) and per the distance formula the distance between them is
\(\displaystyle \sqrt{(1-5)^{2}+(3-1)^{2}}=2\sqrt{5}\)
The distance between the point P with coordinates (x,y) and point A is given by the distance formula, \(\displaystyle d^{2}=(x-1)^{2}+(y-3)^{2}\)
From the ratio this distance is \(\displaystyle \frac{3\sqrt{5}}{2}\)
But, subbing in the line equation for y gives \(\displaystyle (x-1)^{2}+(\frac{-1}{2}x+\frac{1}{2})^{2}=\frac{45}{4}\)
Now, solving for x we get x=4 and y=3/2
Vectors could be used to solve this as well. Which is much easier.
\(\displaystyle AP=\frac{3}{4}AB\)
\(\displaystyle (x-1, \;\ y-3)=\frac{3}{4}(4,-2)=(3, \;\ \frac{-3}{2})\)
So, \(\displaystyle x-1=3, \;\ y-3=\frac{-3}{2}\)
\(\displaystyle x=4, \;\ y=\frac{3}{2}\)