#C4731. Calculate Total Water

    ID: 48302 Type: Default 1000ms 256MiB

Calculate Total Water

Calculate Total Water

Alice is planning several parties and needs to prepare water for her guests. For each party, she has two types of water bottles. The first type provides 3 liters per bottle and the second type provides 5 liters per bottle. Given the number of bottles for each type, your task is to calculate the total amount of water available for each party.

The formula to calculate the total water is given by:

$$\text{Total Water} = 3 \times M + 5 \times N$$

where M and N are the numbers of bottles of the first and second type respectively.

inputFormat

The first line contains an integer T denoting the number of test cases. Each of the following T lines contains two space-separated integers M and N representing the number of bottles of the first and second type respectively.

outputFormat

For each test case, output a single line with the total amount of water in liters.

## sample
3
4 6
2 10
0 8
42

56 40

</p>