Given two integer variables $x$ and $y$. We are given that each integer variable $x$ and $y$ can't be greater than a given integer $z$.
The problem: We are given the proportions $a$ and $b$ such that $a + b = 1$, $a = \frac x z$, and $b = \frac y z$. Is it possible to reverse solve $x$ and $y$?
Assuming you know $a$ and $z$:
From $a+b=1$, you can conclude ….
From $a=\frac x z$ you can conclude ….
From $b=\frac y z$ you can conclude ….