Step 1: Use the property of diagonals of a parallelogram.
In a parallelogram, diagonals bisect each other.
Therefore, for consecutive vertices \(P,Q,R,S\),
\[
\vec{P}+\vec{R}=\vec{Q}+\vec{S}.
\]
Step 2: Substitute the given position vectors.
\[
(\vec{i}+2\vec{j})+(5\vec{i}+7\vec{j})
=
(4\vec{i}+6\vec{j})+(a\vec{i}+b\vec{j}).
\]
Simplifying the left side,
\[
6\vec{i}+9\vec{j}
=
(a+4)\vec{i}+(b+6)\vec{j}.
\]
Step 3: Compare coefficients of \(\vec{i}\) and \(\vec{j}\).
Comparing coefficients of \(\vec{i}\),
\[
a+4=6.
\]
\[
a=2.
\]
Comparing coefficients of \(\vec{j}\),
\[
b+6=9.
\]
\[
b=3.
\]
Step 4: Final conclusion.
Therefore,
\[
\boxed{a=2,\ b=3}
\]