1) 43
2) 21
step by step:
Both triangles are right triangle which means they're equal to 90.
1) 23+24+X= 90
47+x= 90
x= 90-47
X= 43
2) 30+39+X= 90
69+X= 90
X= 90-69
X= 21