We are using The Law of Sines here
sinx / 38 = sin35 / 22 multiply both sides by 38
sin x = (38/22)sin35
Take the sine inverse
arcsin [ (38/22)sin35 ] = x ≈ 82.2°
For the second one, we have
g / sin (74) = 54/sin (58) multiply both sides by sin(74)
g = sin(74)* 58 / sin (58) ≈ 65.7