We can get two equations out of the statement
But first, we will denote the first angle as "x" and the second angle as "y".
The first equation is:

The second equation is:

We clear "y" from the second equation

Now, we replace "y" in the first equation

The first angle is 38 degrees, now replace this value and we find "y"

The second angle is 52 degrees