What's the easiest and fastest way to do this classic math prob?