[tex]\huge {\boxed {\tt{Solution:-}}}[/tex]
Now we solving it :
Let the required number be x.
Atq,
[tex] \sf{ : \implies{5x - 10 = x + 2}} \\ \\ \sf{ : \implies{5x - x= 2 + 10}} \\ \\ \sf{ : \implies{4x= 1 2}} \\ \\ \sf{ : \implies{x= \dfrac{1 2}{4}}} \\ \\ : \implies{ \boxed{ \tt{x =3 }}}[/tex]
[tex]\bf{\therefore{The \:number\:is\:3.}}[/tex]
[tex]\rule {307}{2}[/tex]