An integer N (1 ≤ N ≤ 100), representing some quantity or size.
Four integers p_A, p_B, p_C, p_D (each between 1 and 100), representing some prices.
Four integers t_A, t_B, t_C, t_D (each between 1 and 100), representing some quantities.

### Example Input:

```
10
1 2 3 4
1 2 4 8
```

### Function Signature:
Write a function f(N, prices, quantities) that takes in the input. 
def f(N: int, prices: Tuple[int, int, int, int], quantities: Tuple[int, int, int, int]): 
    ''' 
    N: an integer 
    prices: a tuple of four integers
    quantities: a tuple of four integers
    '''