The monkey B shown in figure is holding on to the tail of the monkey A which is climbing up a rope. The masses of the monkeys A and B are 5 kg and 2 kg respectively. If A can tolerate tension of 30 N in its tail, what force should it apply on the rope in order to carry the monkey B with it? Take g=10 m/s2.