Side AB = AC, and so: y + 8 = x + 10____x - y = - 2 ------ eq (i)
Side BC = AC, and so: 2(x + y) = x + 10___2x + 2y = x + 10____2x - x + 2y = 10____x + 2y = 10 ------- eq (ii)
3y = 12 ------ Subtracting eq (i) from eq (ii)
x - 4 = - 2 ------- Substituting 4 for y in eq (i)
x = - 2 + 4
OR
You could choose any other combinations of 2 sides, and solve for the 2 variables.