Could not understand the logic to solve it

Please help me with the logic to solve it. Could not understand.