The coordinates of point P dividing the line joining points \(A(x_1, y_1)\) and \(B(x_2, y_2)\) in the ratio \(m:n\) are given by the section formula:
\[
P\left(\frac{m x_2 + n x_1}{m + n}, \frac{m y_2 + n y_1}{m + n}\right)
\]
Here, \(A(2, 3)\), \(B(10, 7)\), and the ratio is \(3:1\).
Substitute the values into the section formula:
\[
P\left(\frac{3 \times 10 + 1 \times 2}{3 + 1}, \frac{3 \times 7 + 1 \times 3}{3 + 1}\right)
\]
\[
P\left(\frac{30 + 2}{4}, \frac{21 + 3}{4}\right) = P\left(\frac{32}{4}, \frac{24}{4}\right)
\]
\[
P(8, 6)
\]
Final answer
Answer: \(\boxed{(8, 6)}\)