Credit for this problem goes to MindYourDecisions. Thanks!

Logicians Numbers

Two logicians (A and B) each pick a whole number from 1 to 30 inclusive. The following conversation happens:

All the statements are true. What is A’s number and how did B know?

Solution