I think it is 39kg because it weighs 15 kg at either end and 30 kg in the middle, therefore it is 15kg for 2.5 metres so 15 devided by 2.5 = 6kg per metre so 4metres X 6kg= 24kg +15kg at one end = 39kg if it had no friction and the lifting force remained at 90 deg to the beam at all times
so to over come friction etc call it 40kg