The measures of two sides of a triangle are 8x+8 and 2x+7. If the perimeter
measures 15x+22, what is the measure of the third side, in terms of x?