I don't know whether the story is true or not but I heard it told with many more similar questions back in 1993. I'll look through google to try and find something.
That test is even older than I first thought, it goes back to the late 1980's! Try this link for the full "test":
Los Angeles county math test Teacher must be a real idiot to actually give the test to students!