Please, can you guys help me find the logic here?