The figure above shows three squares with sides of length 5, 7, and x, respectively. If A, B, and C lie on line l, what is the value of x?