A block A of mass 4kg is placed on another block B of mass 5kg and the block B rests on a smooth horizontal table. If the minimum force that can be applied on A so that both the blocks move together is 12N,find the maximum force that can be applied on B for the blocks to move together.