The general equation of the line is,
[tex]\frac{x}{a}+\frac{y}{b}=1[/tex]Here, a is x intercept and b is y intercept.
The sum of the intercept is 10, means that
[tex]\begin{gathered} a+b=10 \\ b=10-a \end{gathered}[/tex]So equation of the line is,
[tex]\frac{x}{a}+\frac{y}{10-a}=1[/tex]Answer is,
[tex]\frac{x}{a}+\frac{y}{10-a}=1[/tex]