Theory
A solution to a line and circle pair must satisfy both equations. For a circle centred at the origin, x² + y² = r², where r is the radius. A line may cross the circle twice, touch it once, or miss it completely.
Use the line equation to replace one letter in the circle equation. For x² + y² = 25 and y = x + 1, write x² + (x + 1)² = 25. The brackets around x + 1 matter: you are squaring the whole expression.
Expand and simplify: x² + x² + 2x + 1 = 25, so 2x² + 2x - 24 = 0. Divide by 2, then factorise x² + x - 12 = (x + 4)(x - 3). Thus x = -4 or x = 3.
Put each x-value into y = x + 1 separately. The two complete solutions are (-4, -3) and (3, 4). Check each pair in the original circle equation; for example 3² + 4² = 25.
For a horizontal line y = k, substitution gives x² = r² - k². A positive right-hand side gives two x-values, zero gives one touching point, and a negative right-hand side gives no real intersection. Do not invent a real square root of a negative number.