Using geometry:
Since M is the origin, point B is the mirror image of point A with respect to the origin. From the origin to point A, you go 5 units left and 4 units up. For the mirror image, start at the origin, and go 5 units right and 4 units down.
Answer: B(5, -4)
Using the midpoint formula:





Answer: B(5, -4)
As you can see, both methods give you the same answer.