please go through the images for better understanding of the problem (as in sequence of 1-5):-
any kind of help would be appreciated....