The first line of input contains an integer(
), denoting the number of test cases.
Each test case contains two integersand
in one line.
.
For each test case, print one integerin one line, denoting your answer.
Pay attention that your answer must satisfyand
is a multiple of
.
If there is no solution, print ``-1''. If there are multiple solutions, you can print any one of them.