Function y = 2-2x what is the square unit of the area of the triangle formed by the image and two coordinate axes

Function y = 2-2x what is the square unit of the area of the triangle formed by the image and two coordinate axes

When x = 0, y = 2
When y = 0, x = 1
The area of a triangle is 1 * 2 / 2 = 1 square unit