Even though we are using variables, we still know that "difference" means subtraction. So, if the larger is x1 and x2, those variables go first. The smaller, y1 and y2 will go second. So our problem will look like this:
(x1 < x2 ? x2 : x1) - (y1 < y2 ? y1 : y2)
Answer:
see explanation
Step-by-step explanation:
Given
f(x) = x² - 6x + 8 and g(x) = x + 2
To solve f(x) = g(x), equate the right sides, that is
x² - 6x + 8 = x + 2 ← subtract x + 2 from both sides
x² - 7x + 6 = 0 ← in standard form
(x - 1)(x - 6) = 0 ← in factored form
Equate each factor to zero and solve for x
x - 1 = 0 ⇒ x = 1
x - 6 = 0 ⇒ x = 6
These solutions can be verified from the tables, that is
f(x) = g(x) = 3 ← when x = 1
f(x) = g(x) = 8 ← when x = 6