Quadrilateral ABCD is a rectangle such that the length of its diagonals AC, BD are 8x+8 cm and 24x –8 cm respectively. Find the value of x.