A uniform pencil AB weighing 40g can be balanced horizontally ona knife edge at 2 cm bfrom the end A when a mass of 60 g is hung from this end.what is the length of the pencil?