Fruit salad

A fruit salad consists of 2 bananas and 1 apple. You currently have X bananas and Y apples. How many salads can he make with the fruits you currently have?
        
       Input:-3
72 50
38 93
51 4
       Input Description: The first line will contain T, The number of testcases. Then The testcases follow.
-each testcase consists of A single line containing two space separated integers - X and Y 
       Output: 36
19
4
       Output Description: For each testcase, output the answer on a new line. 
       Constraints: 1<=T<=100
0<=X,Y<=100
       Explanation: Test Case 1: You can make 36 chaats using 72 bananas and 36 apples.

Test Case 2: You can make 19 chaats using 38 bananas and 19 apples.

Test Case 3: You can make 4 chaats using 8 bananas and 4 apples.

Loading...