Answer:
we see that force of collision is the same in both the case. 
Step-by-step explanation:
Let the time of impact in both the situation be t and mass of each be m 
Applying conservation of momentum in the first case 
m₁v₁ + m₂v₂ = (m₁ +m₂ ) v
m x 20 + m x 10 = 2m x v
v = 15 mph. 
So the speed of B will be reduced from 20 to 15 mph and speed of A will be increased from 10 to 15 mph. 
Considering impact on B only
Impulse on B is equal to change in momentum 
F X t = m ( 20 - 15 )
F is force of collision .
F = 5m / t 
In the second case , 
Applying conservation of momentum in the second case 
m₁v₁ + m₂v₂ = (m₁ +m₂ ) v
m x 40 + m x 30 = 2m x v
v = 35 mph. 
So the speed of B will be reduced and speed of A will be increased.
Considering impact on B only
Impulse on B is equal to change in momentum 
F X t = m ( 40 - 35 )
F is force of collision .
F = 5m / t 
So we see that force of collision is the same in both the case.