Get: x= 100+5*y\4.
Now calculate:10x+13y = 6100.
Substitute x:1000+50 * y/4+13y = 6100.
Y=200, then x=350.
A salary is 350, and B salary is 200.