Answer:Input : A = 12, B = 8
Output : X = 2, Y = 10
Input : A = 12, B = 9
Output : -1
Step-by-step explanation: