The median has the property of being equal to 1/2 the length of the 2 parallel lines in a trapezoid. In this case. 1/2 [(x + 8) + (5x + 4)] = 24 There is your equation. Now all you have to do is solve it.
1/2 (x + 8 + 5x + 4) = 24 I've removed the inner brackets. 1/2 (6x + 12) = 24 Gathered like terms. (6x + 12) = 24*2 Multiplied both sides by 2 6x + 12 = 48 removed the brackets. 6x = 48 - 12 subtracted 12 from both sides. 6x = 36 Divide by 6 x = 36/6 x = 6