According to the given data and the situation of the blocks we can draw the figure as
Since the surface is frictionless, both the blocks will move with a common
acceleration, a=520+10=16 m/s2
Now,
Drawing the FBD of both blocks,
Now we can write equation of force
For the 10 kg block:
N=10a=10×16=53 newtons
If we take 20 kg block then
F−N=20×16
Or,5−N=103
Or,N=53N
Hence the force exerted by blocks at each other is 53N