[tex]x-y=40 \\ \frac{x+y}{x-y}=36 \;\;rest\;\; 20 \\ --- \\ x-y=40 \\ x+y = 36(x-y) + 20 \\ --- \\ x-y=40 \\ x+y = 36*40 + 20 \\ --- \\ x-y=40 \\ x+y = 1460 \\ ---------Adunam \; ecuatiile \\ 2x \;\;\;/= 1500 \\ x= \frac{1500}{2} = \boxed{750} \\ y=x-40= 750 - 40=\boxed{710}[/tex]