Displacement of an object is equal to distance from starting point to end point.
Let's use positive numbers for movement towards east and negative numbers fro movements towards west. First movement is +50m, second movement is -30m. We add these numbers to find displacement.

Total displacement is 20m towards east.