Need help reverse-engineering the logic

Printable View