In the vertical direction, weight is balanced by frictional forces.
As the block is in equilibrium balance forces are in horizontal and vertical direction.
For the system of blocks (A+B)
F = N
for block A, fA = 20N
for block B, fB = fA + 100 = 120N