B is the midpoint of AC. Determine the value of x and AB.

Answers:
x = 7
AB = 47
=============================================================
Explanation:
Since B is the midpoint of AC, this means AB and BC are equal in length
AB = BC
6x+5 = 3x+26
6x-3x = 26-5
3x = 21
x = 21/3
x = 7
Note how
Both AB and BC are 47 units long. This helps confirm the answers and we can say AC = AB+BC = 47+47 = 94.