at first solve first triangle with Pythagorean solving witch it c²=a²+b²
you have to change a bit so it will be c²-b²=a²
you start with 8 and 10 triangle and then you get line which is in the middle and yo udo just the same with triangle 8 and the solved side and you get x in the second triangle you have to use c²-a²=b²