Answer :
[tex]\\ \sf\longmapsto y=2x-x^2[/tex]
- y=0
[tex]\\ \sf\longmapsto 2x-x^2=0[/tex]
[tex]\\ \sf\longmapsto x^2-2x=0[/tex]
[tex]\\ \sf\longmapsto x(x-2)=0[/tex]
[tex]\\ \sf\longmapsto x=0,2[/tex]

Answer
⇒ y=2x−x2
- y=0
⇒ 2x - x² = 0
⇒ x² - 2x = 0
⇒ x ( x - 2 ) = 0
⇒ x = 0, 2