$x$ and $y$ are two integer numbers and $x \geq y$. The values of $x$ and $y$ are positive or negative integers. When the sum of these two numbers are multiplied by $y$ we obtain $P$ and when the absolute value of the subtraction of these two numbers is multiplied by $x$ we obtain $Q$. Given $P$ and $Q$ we need to find the value of $x$ and $y$. An input example: $(160, 48)$ output: $(12, 8)$
I'm trying to solve this by systems, but I don't know how to solve it when there's this absolute value of $x-y$.