# Arithmetic Series

Given the first **2** terms** A and B **of an Arithmetic Series, tell the **N ^{th}** term of the series.

**Input:**

The first line of input contains an integer, the number of test cases

**T**. T

**Output:**

For each testcase, in a new line, print the N^{th} term of the Arithmetic Progression.

**Constraints:**

1 <= T <= 100

-10^{3 }<= A <= 10^{3}

-10^{3 }<= B <= 10^{3}

1 <= N <= 10^{4}

**Example:****Input:**

2

2 3

4

1 2

10

**Output:**

5

10