Answer:
x = -4
Explanation:
The area of a triangle is half the product of its base and height.

Given values:
- Area = 24 cm²
- Base = (2 - x) cm
- Height = (4 - x) cm
Substitute the given values into the formula:

Multiply both sides of the equation by 2:

Expand the parentheses:


Subtract 48 from both sides;

Rewrite -6x as -10x + 4x:

Factor the first two terms and the last two terms separately:

Factor out the common term (x - 10):

Apply the zero-product property:


If x ≥ 4 then the height of the triangle would be h ≤ 0.
If x = 10, the height of the triangle would be -6.
As length cannot be negative, the only value of x is x = -4.