Setup: The person is an arbitrary distance up the ladder of length L, say, x. The ladder's mass will be m, and the person's mass will be M.
Picking the base of the ladder as an origin is nice, as we don't have to consider the torque generated by the base of the ladder. 3 more objects will apply a force to the ladder: gravity and the person in a downwards direction, and the wall in a horizontal direction.
Torque is r x F, or the cross product between the vectors F and r. F is force, and r is radius (distance from your origin). In a more basic sense, it is r*F, where F is the componet of F perpendicular to r, and r is |r|.
Drawing a picture to see this helps, but:
The torque from the ladder will be (L/2)*mg*cos(50).
The torque from the person will be x*Mg*cos(50).
The torque from the wall will be L*Fw*sin(50), where Fw is the force exerted by the wall.
Balancing these, we have:
((L/2)*m + x*M)g*cos(50) = L*Fw*sin(50).
We want to find when the ladder starts to slip, or when Fw = mu*Fn = mu*(M+m)g.
Plugging in and simplifying we have:
((L/2)*m + x*M)cos(50) = L*mu*(M+m)*sin(50).
Plugging in and solving for x, we have:
x = (L*mu*(M+m)*tan(50) - (L/2)*m)/M
= (8*600*tan - 800)/800
= 6*tan(50) - 1
= 6.15