Two identical ladders are arranged as shown in the figure, resting on a horizontal surface. Mass of each ladder is M and length L. A block of mass m hangs from the apex point P. If the system is in equilibrium, find direction and magnitude of friction?