initially, AB is horizontal. find angular velocity of AB when it is in position theta(photo)
ignore friction and mass of A and B