Airport Menace
Lucy was travelling for the first time in an airplane and booked a ticket for X rupees. But, she was denied boarding due to overbooking. The airline company has offered her Y rupees as compensation for the inconvenience, whereas by consumer court she can get 4 times the amount she paid for the ticket as compensation. Tell the maximum amount Lucy can get as compensation.
Input Format
- First line contains a single integer T denoting the number of test cases.
- The next line contains two space-seperated integers X, and Y, denoting the amount paid for the ticket and amount offered by the airline company respectively.
Output Format
- For every test case, print the maximum amount Lucy can get as compensation.
Constraints
- 1 ≤ T ≤ 10
- 1 ≤ X ≤ 100
- 1 ≤ Y ≤ 100
Sample 0
Input
2 5 12 5 50
Output
20 50
Explanation
In the first test case, Lucy paid 5 rupees and airline offered her 12. But she can get 4 times 5 rupees via consumer court. Hence 20.
In the second case, Lucy paid 5 rupees and airline offered her 50. She can get 4 times 5 rupees via consumer court. Hence she takes the 50.
Time Limit
1000 ms
Memory Limit
262144 KiB
Please login to submit.
Login to submit.