# PROBLEM LINK:

Practice

Contest: Division 1

Contest: Division 2

Contest: Division 3

Contest: Division 4

* Author:* tejas10p

*iceknight1093, rivalq*

**Testers:***iceknight1093*

**Editorialist:**# DIFFICULTY:

TBD

# PREREQUISITES:

None

# PROBLEM:

Chef sells a fruit for rupees X, and earns a profit of rupees Y.

If he increases the price of the fruit by 10\%, what’s his new profit?

# EXPLANATION:

The new price of the fruit is X increased by 10\%, i.e, X + \frac{X}{10}.

The increase in price is \frac{X}{10}, and so Chef’s profit will also increase by exactly this amount.

So, the total profit is now

Y + \frac{X}{10}

# TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

# CODE:

## Code (Python)

```
for _ in range(int(input())):
x, y = map(int, input().split())
print(y + x//10)
```