Here is a summary of the available information:
- The four first names are: Ahmad, Ali, Amir, Nima.
- The four last names are: Akbari, Koohi, Nazari, Rezayi
- Ali Koohi is one name pair
- Rezayi beats Nima, and hence Nima Rezayi is not a name pair
- Ahmand Nazari is not a name pair
This leaves three possible name matchings:
(1) Ali Koohi, Amir Rezayi, Ahmad Akbari, Nima Nazari
(2) Ali Koohi, Amir Akbari, Nima Nazari, Ahmad Rezayi
(3) Ali Koohi, Amir Nazari, Nima Akbari, Ahmad Rezayi
Now let us work through the three cases one by one.
In case (1) Ali beats Amir and Amir beats Nima. Hence Ali and Nima Nazari cannot be on adjacent ranks (as Amir is inbetween).
In the remaining cases (2) and (3), Ali beats Amir and Ahmad beats Nima.
This yields six possible rankings:
- (a) Ali > Amir > Ahmad > Nima
- (b) Ali > Ahmad > Amir > Nima
- (c) Ali > Ahmad > Nima > Amir
- (d) Ahmad > Nima > Ali > Amir
- (e) Ahmad > Ali > Nima > Amir
- (f) Ahmad > Ali > Amir > Nima
Now as Ahmad is not on the third place, (2a) and (3a) are eliminated.
As Ali and Nazari are on neighboring places (in this order), this
eliminates (2b), (3b), (2c), (3c), (2d), (3e), and (2f).
We are left with (3d), (2e) and (3f).
Finally we use that Akbari is not in last place:
In (2e) Amir Akbari is in last place, and in (3f) Nima Akbari is in last place.
This leaves (3d) as only possible solution:
Ahmad Rezayi > Nima Akbari > Ali Koohi > Amir Nazari
Hence Ali Koohi reached the third place.