
For an observer on ground, this is how he depicts the FBD of mass,

f = ma
Now let us check for any sliding.
f ≤ fs … (i) [Condition for no sliding]
fs = µmg = (0. 18) (15 × 10) = 27 N.
and f = ma ≡ 15(0. 5) = 7. 5 N.
Hence no sliding.
The observer will find the body to move with acceleration of 0.5 m/s.
Now since there is no sliding, there is no relative motion w. r. t. the trolley.
Hence observer on trolley will find the mass to be at rest.