The legs of an isosceles triangle have lengths 2x + 4 and x + 8. The base has the length 5x - 2. What is the length of the base?