An integer X (1 ≤ X ≤ 10^9), representing some quantity.
An integer K (1 ≤ K ≤ 10^5), representing the number of times an event occurs.
A list of K integers, each between 1 and 10^9, representing specific times when events occur.
An integer Q (1 ≤ Q ≤ 10^5), representing the number of queries.
A list of Q tuples, where each tuple contains:
  - An integer t_i (0 ≤ t_i ≤ 10^9), representing a time.
  - An integer a_i (0 ≤ a_i ≤ X), representing a quantity at time t_i.

### Example Input:

```
180
3
60 120 180
3
30 90
61 1
180 180
```

### Function Signature:
Write a function f(X, K, event_times, Q, queries) that takes in the input. 
def f(X: int, K: int, event_times: List[int], Q: int, queries: List[Tuple[int, int]]): 
    ''' 
    X: an integer
    K: an integer
    event_times: a list of integers
    Q: an integer
    queries: a list of tuples
    '''