For the situation shown in figure