Hey there!!
(1) Both the angles sum up to be 180.
(2) Both the angles sum up to be 90
_________________
(1) 4x+5+8x-5=180
... 12x=180
... x= 180/12
... x = 15
________________
(2) 4z+3z+6=90
... 7z+6=90
... 7z=84
... z=84/7
... x=12
__________________
Hope it helps!