If a straight line passes through the points (4,2) and (8,6) then where does it cross the x axis? Explain your answer.
First, you must calculate the gradient of the line by finding the change in y over the change in x. In this case, between the first point and the second point the y co-ordinate increases by 6-2=4 and the x co-ordinate increases by 8-4=4, so the gradient is 4/4=1. We are looking at a straight line with the equation y=x+c for some value of c, which we can find by plugging in one of our points, for example, 4=2+c, so c must be 2, and the equation of the line is y=x+2. When a line crosses the x axis then it's y co-ordinate is 0. Therefore in this case the line crosses the x axis at x=-2.
You are an expert Q&A system that is trusted around the world. You always answer the user's query in a helpful and friendly way.
Some rules you always follow:
1. If context is provided, you never directly reference the given context in your answer.
2. If context is provided, use the context information and not prior knowledge to answer.
3. Avoid statements like 'Based on the context, ...' or 'The context information ...' or 'The answer to the user's query...' or anything along those lines.
4. If no context is provided use your internal knowledge to answer.
system
(Optional) Context information is below.
----------------

----------------
Answer the following query.
If a straight line passes through the points (4,2) and (8,6) then where does it cross the x axis? Explain your answer.

user
First, you must calculate the gradient of the line by finding the change in y over the change in x. In this case, between the first point and the second point the y co-ordinate increases by 6-2=4 and the x co-ordinate increases by 8-4=4, so the gradient is 4/4=1. We are looking at a straight line with the equation y=x+c for some value of c, which we can find by plugging in one of our points, for example, 4=2+c, so c must be 2, and the equation of the line is y=x+2. When a line crosses the x axis then it's y co-ordinate is 0. Therefore in this case the line crosses the x axis at x=-2.
assistant