Find the largest positive integer $n$ with the following property: there are rectangles $A_1, ... , A_n$ and $B_1,... , B_n,$ on the plane , each with sides parallel to the axis of the coordinate system, such that the rectangles $A_i$ and $B_i$ are disjoint for all $i \in \{1,..., n\}$, but the rectangles $A_i$ and $B_j$ have a common point for all $i, j \in \{1,..., n\}$, $i \ne j$.

[i]Note: By points belonging to a rectangle we mean all points lying either in its interior, or on any of its sides, including its vertices [/i]
1. **Claim**: The largest positive integer \( n \) with the given property is at most \( 4 \).

2. **Construction for \( n = 4 \)**:
    - Consider four rectangles \( A_1, A_2, A_3, A_4 \) arranged in a cyclic manner such that:
        - \( A_1 \) is connected to \( A_2 \),
        - \( A_2 \) is connected to \( A_3 \),
        - \( A_3 \) is connected to \( A_4 \),
        - \( A_4 \) is connected to \( A_1 \).
    - Define \( B_1 = A_3 \), \( B_2 = A_4 \), \( B_3 = A_1 \), and \( B_4 = A_2 \).
    - This arrangement ensures that \( A_i \) and \( B_i \) are disjoint for all \( i \in \{1, 2, 3, 4\} \), and \( A_i \) and \( B_j \) have a common point for all \( i \neq j \).

3. **Proof for \( n \geq 5 \)**:
    - Assume \( n \geq 5 \). We need to show that such an arrangement is not possible.
    - Define a number in \( \{1, 2, \ldots, n\} \) as *westward* if the \( x \)-coordinates of all points in \( A_i \) are less than those of all points in \( B_i \). Similarly, define *eastward*, *northward*, and *southward*.
    - By the pigeonhole principle, since there are 4 directions and \( n \geq 5 \), at least two rectangles must share the same directional category. Without loss of generality, assume there are at least two westward numbers, say \( i \) and \( j \).
    - Let \( (x, y) \) be a point in \( A_i \cap B_j \) and \( (x', y') \) be a point in \( A_j \cap B_i \).
    - Since \( A_i \) is entirely west of \( B_i \), we have \( x < x' \).
    - Since \( A_j \) is entirely west of \( B_j \), we have \( x' < x \).
    - This leads to a contradiction because \( x \) cannot be both less than and greater than \( x' \).

4. **Conclusion**:
    - Therefore, \( n \leq 4 \).

The final answer is \( \boxed{4} \).