write an equation of a line passing through a point (2,10) and (0,10)

To write the equation of a line passing through two points, you will need to use the slope-intercept form of the equation of a line, which is given by:

y = mx + b

Where:
- y and x are the coordinates of any point on the line.
- m is the slope of the line.
- b is the y-intercept of the line.

To find the equation of the line passing through the points (2,10) and (0,10), we first need to find the slope (m) of the line.

The slope (m) is calculated using the formula:

m = (y2 - y1) / (x2 - x1)

Let's substitute the coordinates of the two points into the formula to find the slope (m):

m = (10 - 10) / (0 - 2)
m = 0/(-2)
m = 0

Since the slope (m) is 0, the equation of the line becomes:

y = 0x + b

Simplifying it further, we get:

y = b

Now, to find the value of the y-intercept (b), we can use any of the given points. Let's use the point (2,10):

y = b
10 = b

So the equation of the line passing through the points (2,10) and (0,10) is simply:

y = 10