How would you approach this problem? Edit: here's a link to a pic of the problem: http://i49.tinypic.com/2ex6d1x.png