each variable represents one number. find the value of each variable.

x+4=9
3+y=x

x=5 y=2