The correct option is B 2.5 A
From figure, ideal diode D1 is reversed biased whereas ideal diode D2 is forward biased. Thus D1 acts as an open switch while D2 as a closed switch as shown in the equivalent circuit.
Thus current flowing through R1, I=VR1+R3=102+2=2.5 A