For a situation shown in figure