question doubt

can someone explain how their answer is right?

can someone explain how their answer is right?