It turns out Will Hunting wasn’t as wicket smaht as the movie told us.

The purportedly “impossible” math problem put forth by the professor in the movie is a piece of cake.

If you don’t remember the scene, here it is:

And here’s the solution to it from Dr. James Grime: