From the Free body diagram the block is subjected to the following set of forces.
1. Force P
2. Weight of the block W
3. Reaction RA at the hinged point
4. When the block is at the state of just being lifted off the roller, reaction RB = 0
∑MA = 0
– P cos 30° × 0.25 – P sin 30° × 0.25 + 20 × 0.125 = 0
– 0.22 P – 0.125 P + 2.5 = 0
P = 7.27N