Step 1: Write the divisor in factorized form.
\[
x^2-10x+24=(x-4)(x-6)
\]
The remainder upon division by a quadratic divisor must be linear.
Let the remainder be
\[
R(x)=mx+n
\]
Step 2: Use the given remainders.
Since
\[
f(4)=6
\]
and
\[
f(6)=8
\]
the remainder must satisfy
\[
R(4)=6
\]
\[
4m+n=6
\]
\[
\cdots(1)
\]
and
\[
R(6)=8
\]
\[
6m+n=8
\]
\[
\cdots(2)
\]
Step 3: Solve for \(m\) and \(n\).
Subtracting,
\[
2m=2
\]
\[
m=1
\]
Substitute into (1),
\[
4+n=6
\]
\[
n=2
\]
Thus,
\[
R(x)=x+2
\]
\[
\boxed{x+2}
\]