Let the number of coins collected by A in one week be $3x$ and by B be $4x$.
We are given:
For $15x$ to be divisible by 7, $x$ must be a multiple of 7.
So, let $x = 7k$, where $k$ is a positive integer.
Substituting into the second condition:
$12x = 12 \times 7k = 84k$
For $84k$ to be a multiple of 24, $k$ must be chosen appropriately.
Check with $k = 1$: $84 \times 1 = 84$, which is divisible by 12 but not by 24.
Try $k = 2$: $84 \times 2 = 168$, which is divisible by 24.
So, the smallest suitable value is $k = 2$, and hence $x = 14$.
Therefore, coins collected by A in one week = $3x = 3 \times 14 = \mathbf{42}$.