math - how does it work?