In my research in a different field (representation theory), the following system of equations popped up:
$$ ax=by $$ $$ xy+a+b-ax=p $$
where $p\in\{0,1,2,3,4\}$ and $a,b,x,y$ are integers (I am also interested in the case where x and y are rationals). I have found some solutions in some special cases e.g. when a=0 or x=2. I also wrote a simple python script to find solutions and it seems to indicate that there should be a few infinite families of solutions and a few sporadic ones. However, this is not my field at all, and I am quite unsure about the difficulty of solving such a system. Does it seem likely that one can determine all (positive) integer solutions? All solutions with x, y rational?