Here we need to set a system of two linear equations in two variables. So:
Let [tex]x \ and \ y[/tex] be those digits, then:
[tex]x+y=8 \ \ldots eq1[/tex]
[tex]10x+y+9 \ldots expression \ 1[/tex]
But from eq 1:
[tex]y=8-x[/tex]
Substituting y into the expression 1:
[tex]10x+(8-x)+9=9x+17[/tex]
The x-value will be found by hit and trial, so:
[tex]9x + 17 = 9(1)+17 = 26[/tex]
We have to reject this solution because digits are different.
[tex]9x + 17 = 9(2)+17 = 35[/tex]
We have to reject this solution because digits are different.
[tex]9x + 17 = 9(3)+17 = 44[/tex]
Then this is a two digit number formed by two equal digits.
Finally, the number is:
44