the first number is 35 and the second number is 28.
You can get all complicated with this by using the Cramer's rule, or you can try this trick.
the ratio is 5/4 and x is 7 more than y, therefore 5 in 5/4 is x because x is the bigger number thus has a bigger portion.
5 x 7=35, which is x
35-7=28, which is y