If the horizontal force needed to move the top block is at least 12 N, we can calculate the static coefficient of friction with the formula below:

(a)
Let's draw the force diagram of the system:
Using the second law of Newton for the complete system (considering the two blocks as one big block), we have:

Now, for the top block, we have:

(b)
The resulting acceleration will be: