Step 1: Write the given points.
Let the two given vertices be
\[
A=(-1,3)
\]
and
\[
B=(2,5).
\]
Let the third vertex be
\[
C=(a,b).
\]
The orthocenter is
\[
H=(1,2).
\]
Step 2: Use the property of orthocenter.
Since \(H\) is the orthocenter, the line \(CH\) is perpendicular to \(AB\).
Also, the line \(AH\) is perpendicular to \(BC\).
Step 3: Use \(CH\perp AB\).
The slope of \(AB\) is
\[
m_{AB}=\frac{5-3}{2-(-1)}
\]
\[
=\frac{2}{3}.
\]
Therefore, the slope of \(CH\) must be
\[
-\frac{3}{2}.
\]
Now,
\[
m_{CH}=\frac{b-2}{a-1}.
\]
So,
\[
\frac{b-2}{a-1}=-\frac{3}{2}.
\]
Cross multiplying,
\[
2(b-2)=-3(a-1)
\]
\[
2b-4=-3a+3
\]
\[
3a+2b=7.
\]
Step 4: Use \(AH\perp BC\).
The slope of \(AH\) is
\[
m_{AH}=\frac{2-3}{1-(-1)}
\]
\[
=-\frac{1}{2}.
\]
Therefore, the slope of \(BC\) must be
\[
2.
\]
Now,
\[
m_{BC}=\frac{b-5}{a-2}.
\]
So,
\[
\frac{b-5}{a-2}=2.
\]
\[
b-5=2a-4
\]
\[
b=2a+1.
\]
Step 5: Solve the two equations.
We have
\[
3a+2b=7
\]
and
\[
b=2a+1.
\]
Substitute \(b=2a+1\) in \(3a+2b=7\):
\[
3a+2(2a+1)=7
\]
\[
3a+4a+2=7
\]
\[
7a=5
\]
\[
a=\frac{5}{7}.
\]
Then,
\[
b=2\left(\frac{5}{7}\right)+1
\]
\[
=\frac{10}{7}+\frac{7}{7}
\]
\[
=\frac{17}{7}.
\]
Step 6: Final conclusion.
Therefore,
\[
(a,b)=\boxed{\left(\frac{5}{7},\frac{17}{7}\right)}
\]