Janmansh received X coins of 10 rupees and Y coins of 5 rupees from Chingari. Since he is weak in math, can you find out how much total money does he have?

------ 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 X, Y - the number of 10 and 5 rupee coins respectively.

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

For each test case, output how much total money does Janmansh have.

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

$1 ≤T ≤100$
$0 ≤X, Y ≤100$

----- Sample Input 1 ------ 
2
2 1
3 4

----- Sample Output 1 ------ 
25
50

----- explanation 1 ------ 
Test case-1: He has $2$ coins of $10$ rupees and $1$ coin of $5$ rupees. Hence he has $2 \cdot 10+5 = 25$ rupees.

Test case-2: He has $3$ coins of $10$ rupees and $4$ coins of $5$ rupees. Hence he has $3 \cdot 10 + 4 \cdot 5 = 50$ rupees.

Source: codechef | Difficulty: EASY
Tags: Mathematics


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


for i in range(int(input())):
	(a, b) = map(int, input().split())
	print(a * 10 + b * 5)


n = int(input())
for i in range(0, n):
	(a, b) = list(map(int, input().split()))
	x = a * 10 + b * 5
	print(x)


x = int(input())
for i in range(x):
	(a, b) = map(int, input().split())
	tenrs = a * 10
	fivers = b * 5
	print(tenrs + fivers)


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


T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	total_rupees = X * 10 + Y * 5
	print(total_rupees)


t = int(input())
while t:
	(x, y) = map(int, input().split())
	print(10 * x + 5 * y)
	t -= 1


for i in range(int(input())):
	l1 = [int(x) for x in input().split()]
	print(l1[0] * 10 + l1[1] * 5)


for _ in range(int(input())):
	(a, b) = list(map(int, input().split()))
	print(a * 10 + b * 5)


t = int(input())
for i in range(t):
	(n, m) = map(int, input().split(' '))
	print(n * 10 + m * 5)


for _ in range(int(input())):
	(x, y) = map(int, input().split())
	a = 10 * x
	b = 5 * y
	print(a + b)


for i in range(int(input())):
	(w, x) = map(int, input().split())
	print(w * 10 + x * 5)


t = int(input())
while t != 0:
	(a, b) = map(int, input().split())
	print(a * 10 + b * 5)
	t = t - 1


T = int(input())
for i in range(T):
	(N, M) = map(int, input().split())
	print(N * 10 + M * 5)


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	c = x * 10
	d = y * 5
	q = c + d
	print(q)


import math
n = int(input())
for i in range(n):
	(x, y) = map(int, input().split())
	a = x * 10 + y * 5
	print(a)


T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	x = X * 10
	y = Y * 5
	print(x + y)


d = int(input())
for l in range(d):
	(x, y) = map(int, input().split())
	print(x * 10 + y * 5)


T = int(input())
for num in range(0, T):
	(x, y) = map(int, input().split())
	a = x * 10
	b = y * 5
	print(a + b)


T = int(input())
for _ in range(T):
	(x, y) = map(int, input().split())
	print(x * 10 + y * 5)


t = int(input())
for i in range(t):
	(u, j) = map(int, input().split())
	print(u * 10 + j * 5)