Matt Damon and Ben Affleck co-scripted and star in this drama, set in Boston and Cambridge, about rebellious 20-year-old MIT janitor Will Hunting (Damon), gifted with a photographic memory, who hangs out with his South Boston bar buddies, his best friend Chuckie (Affleck), and his affluent British girlfriend Skylar (Minnie Driver). After MIT professor Lambeau (Stellan Skarsgard) stumps students with a challenging math formula on a hallway blackboard, Will anonymously leaves the correct solution, prompting Lambeau to track the elusive young genius. As Will's problems with the police escalate, Lambeau offers an out, but with two conditions -- visits to a therapist and weekly math sessions. Will agrees to the latter but refuses to cooperate with a succession of therapists. Lambeau then contacts his former classmate, therapist Sean McGuire (Robin Williams), an instructor at Bunker Hill Community College. Both are equally stubborn, but Will is finally forced to deal with both his past and his future.