There are N bikes and M cars on the road.

Each bike has 2 tyres.
Each car has 4 tyres.

Find the total number of tyres on the road.

------ Input Format ------ 

- The first line will contain T - the number of test cases. Then the test cases follow.
- The first and only line of each test case contains two integers N, M.

------ Output Format ------ 

For each test case, output in a single line,  the total number of tyres on the road.

------ Constraints ------ 

$1 ≤ T ≤ 1000$
$0 ≤ N, M ≤ 100$

----- Sample Input 1 ------ 
2
2 1
3 0

----- Sample Output 1 ------ 
8
6

----- explanation 1 ------ 
Test Case $1$: There are $2$ bikes and $1$ car. Each bike has $2$ tyres, so there are $2\cdot 2 = 4$ bike tyres. Similarly, each car has $4$ tyres, so there are $1\cdot 4 = 4$ car tyres. Adding the tyres of all vehicles, we get $4+4=8$ tyres in total.

Test Case $2$: There are $3$ bikes and $0$ cars. Each bike has $2$ tyres, so there are $3\cdot 2 = 6$ bike tyres. There are no cars, so there are $0\cdot 4 = 0$ car tyres. Adding the tyres of all vehicles, we get $6+0=6$ tyres in total.

Difficulty: EASY

Solutions:
a = int(input())
for i in range(a):
	(b, c) = [int(x) for x in input().split()]
	print(b * 2 + c * 4)


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	print(x * 2 + y * 4)


for i in range(int(input())):
	(n, m) = map(int, input().split())
	print(2 * n + 4 * m)


for i in range(int(input())):
	(N, M) = map(int, input().split())
	print(2 * N + 4 * M)


t = int(input())
for i in range(t):
	(n, m) = [int(x) for x in input().split()]
	print(n * 2 + m * 4)


n = int(input())
for i in range(n):
	(j, k) = map(int, input().split())
	print(j * 2 + k * 4)


for _ in range(int(input())):
	(x, y) = list(map(int, input().split()))
	print(x * 2 + y * 4)


n = int(input())
for i in range(n):
	(a, b) = map(int, input().split())
	a = a * 2
	b = b * 4
	print(a + b)


T = int(input())
for i in range(T):
	(N, M) = map(int, input().split())
	bike_tyres = N * 2
	car_tyres = 4 * M
	total_tyres = car_tyres + bike_tyres
	print(total_tyres)


t = int(input())
for _ in range(t):
	(a, b) = map(int, input().split())
	print(a * 2 + b * 4)


a = int(input())
while a != 0:
	(x, y) = map(int, input().split())
	print(x * 2 + y * 4)
	a -= 1


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	vaL_a = x * 2
	vaL_b = y * 4
	vaL_total = vaL_a + vaL_b
	print(vaL_total)


T = int(input())
for t in range(T):
	(N, M) = map(int, input().split())
	a = N * 2
	b = M * 4
	print(a + b)


t = int(input())
for i in range(t):
	l = list(map(int, input().split()))
	print(2 * l[0] + 4 * l[1])


t = int(input())
for i in range(t):
	(x1, y1) = map(int, input().split())
	print(2 * x1 + 4 * y1)


t = int(input())
for i in range(t):
	(n, m) = input().split()
	(n, m) = (int(n), int(m))
	biketyre = n * 2
	cartyre = m * 4
	print(biketyre + cartyre)


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	t1 = x * 2
	t2 = y * 4
	T = t1 + t2
	print(T)


t = int(input())
while t != 0:
	(a, b) = map(int, input().split())
	c = a * 2
	s = b * 4
	print(c + s)
	t = t - 1


n = int(input())
while n > 0:
	(a, b) = map(int, input().split())
	c = a * 2 + b * 4
	print(c)
	n -= 1


t = int(input())
while t:
	(n, m) = map(int, input().split())
	print(2 * n + 4 * m)
	t -= 1


def tyres(n, m):
	return n * 2 + m * 4
t = int(input())
for i in range(1, t + 1):
	(n, m) = map(int, input().split())
	res = tyres(n, m)
	print(res)


a = int(input())
for i in range(a):
	(l, m) = map(int, input().split())
	k = l * 2 + m * 4
	print(k)


t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	T = X * 2 + Y * 4
	print(T)


n = int(input())
for i in range(n):
	(n1, n2) = map(int, input().split())
	print(2 * n1 + 4 * n2)


n = int(input())
for i in range(n):
	(x, y) = list(map(int, input().split()))
	a = x * 2
	b = y * 4
	print(a + b)


t = int(input())
for i in range(t):
	(a, b) = map(int, input().split())
	s = 2 * a + 4 * b
	print(s)


n = int(input())
for i in range(n):
	(x, y) = map(int, input().split())
	bikes = x * 2
	cars = y * 4
	print(bikes + cars)


T = int(input())
while T:
	T -= 1
	(N, M) = map(int, input().split())
	print(N * 2 + M * 4)


def tyre(N, M):
	return N * 2 + M * 4
T = int(input())
for i in range(T):
	(N, M) = map(int, input().split())
	print(tyre(N, M))


for i in range(int(input())):
	(a, b) = list(map(int, input().split()))
	c = a * 2
	d = b * 4
	print(c + d)


T = int(input())
for i in range(0, T):
	(N, M) = map(int, input().split())
	b = N * 2
	c = M * 4
	print(b + c)


for _ in range(0, int(input())):
	(b, c) = map(int, input().split())
	print(b * 2 + c * 4)


n = int(input())
for i in range(n):
	(x, y) = input().split()
	x = int(x)
	y = int(y)
	print(2 * x + 4 * y)


n = int(input())
for i in range(n):
	lst = list(map(int, input().split()))[:2]
	print(lst[0] * 2 + lst[1] * 4)


p = int(input())
for i in range(0, p):
	(U, V) = map(int, input().split())
	j = U * 2
	k = V * 4
	print(j + k)


t = int(input())
for _ in range(t):
	(n, m) = map(int, input().split())
	print(n * 2 + m * 4)


for i in range(int(input())):
	(x, y) = map(int, input().split())
	b = x * 2
	c = y * 4
	print(b + c)