A appears to be the only correct answer
a^2+b^2=c^2
you are solving for c when finding distance, so (a^2 + b^2) must be square rooted, as a whole, not separately
and a = (x1-x2)
and b = (y1-y2)
you can flip the 1 and 2 but you have to flip for both x and y
like x1-x2 means you have to do y1-y2
like x2-x1 means you have to do y2-y1
so both above are correct as long as the order of 1 and 2 stays the same for both x and y