what is the general way of solving the second part of this question:

http://img116.imageshack.us/img116/1152/25587465vv2.gif

i think i solved part 1.

but i dont know how to use part 1

in order to solve 2

http://img384.imageshack.us/img384/2546/55339538nk4.gif