First, the first "if" is not clear in the question, but i guess it is m not equal to zero as m is in the denominator . The other weird thing about the question is d. how can we eliminate d.
This question is really not right at all. And the thing that A and B are the same add to this weird thing. I dont know if anyone can come up with an answer.