A ladder of mass M and length L leans against a wall as shown. There is no friction with the wall but there is friction with the ground. What is the maximum distance along the ladder that someone with mass m can climb without the ladder slipping?