x−coordinate is the distance from the Y−axis.
Since this distance is 5 units towards the left of Y−axis, it is taken as −5
y−coordinate is the distance from the X−axis.
Since this distance is 2 units towards the right of X−axis, it is taken as 2
∴ Coordinates of B=(−5,2)