Answer:
x = 8
y = 30
Explanation:
This is a simple systems of equations problem. You'd want to write 2 equations for the 2 pieces of information they gave you.
x + y = 38
y - 22 = x
There are multiple ways to solve it, but since they give you what x equals, I would substitute in into the other equation.
(y - 22) + y = 38
2y - 22 = 38
2y = 60
y = 30
You can take y = 30 and plug it into an original equation for the value of x.
x + 30 = 38
x = 8
I hope this helped!