As we know the range of 2's complement number is $-2^{n-1} \text{ to } (2^{n-1} -1)$ because the given data is five-bit long so its range is $-16 $ to $+15.$
First calculate the value of $A, B$.
- $A=01010=+10$ as the MSB bit is zero so the number is positive.
- $B=11010=-2+4-8=-6$ as MSB bit is one so the number is negative.
Option A) $A+B= +10+(-6)=+4$
Option B) $A-B= +10-(-6)=+16$.To represent $(+16)_{10}\rightarrow (010000)_2$ it required total of six bits which is clearly out of range.
Option C) $B-A=-6-(+10)=-16$
Option D) $2*B=2*(-6)=-12$
So Option $(B)$ is correct.