Your notation is slightly trippy. In essence, you really just wish to solve the equation $7x+c_1 = 11y+c_2$, where $c_1$ is the "column" from sequence A, and $c_2$ is the "column" from sequence B over $x,y \in \mathbb Z_{\geq 0}$.
In order to do that, first note that a necessary condition for this equation to hold on $x,y \in \mathbb{Z}$ is that $7 | 11y + c_2 - c_1$ as well as $11 | 7x + c_1 - c_2$. We can convert these two into congruences, and then solve.
In particular, this means $\bmod 11: 7x \equiv c_2 - c_1 \implies x \equiv 8(c_2 - c_1) \implies x = 11k_1 + 8(c_2 - c_1)$ with $k_1 \in \mathbb Z$. From the second condition $\bmod 7: 11y \equiv 4y \equiv c_1 - c_2 \implies y \equiv 5(c_1 - c_2) \implies y = 7k_2 + 5(c_1-c_2)$ with $k_2 \in \mathbb Z$. Now substitute $x$ and $y$ back into the equation, to get $7(k_2 -k_1) = 10(c_2-c_1)$ from which you substitute $k_2$ into the expression of $y$. Hence you get that $x = 11k + 8(c_2 - c_1)$, $y = 7k + 5(c_2 - c_1)$ with $k$ being written in place of $k_1$.
Then your desired numbers will be $\boxed{n = 77k + 56c_2 - 55c_1,\ k\in\mathbb Z}$, which is from substituting $x$ or $y$ into $7x+c_1$ or $11y+c_2$. Further, to calculate the row on which it lies in your first and second sequence, you'd need to find out $x$ and $y$ from this particular $k$. For your example setting $c_2 = 4$, $c_1$ gives us that $n = 77k + 169$ and here putting $k=-2$ gives us $n=15$. We can also figure out $x$ and $y$ given this $k$ to figure the rows in which $n$ lies in sequence A and sequence B respectively.