An integer m (1 ≤ m ≤ 50), representing some quantity or size.
An integer n (1 ≤ n ≤ 50), representing some quantity or size.
A 2D list B of size m × n, where each element is a character from the set {'.', '1', '2', ..., '9'}.
An integer k (1 ≤ k ≤ 10), representing the number of operations or queries.
A list of k tuples T, where each tuple contains two integers (x, y) (1 ≤ x ≤ m, 1 ≤ y ≤ n).

### Example Input:

```
6
6
......
.1.2..
.1....
.1..3.
.1....
......
2
1 3
5 3
```

### Function Signature:
Write a function f(m, n, B, k, T) that takes in the input.
def f(m: int, n: int, B: List[List[str]], k: int, T: List[Tuple[int, int]]):
    '''
    m: an integer
    n: an integer
    B: a 2D list of characters
    k: an integer
    T: a list of tuples
    '''