<Tr> <Th> Budget </Th> <Td> $10 million </Td> </Tr> <Tr> <Th> Box office </Th> <Td> $225.9 million </Td> </Tr> <P> Good Will Hunting is a 1997 American drama film, directed by Gus Van Sant, and starring Robin Williams, Matt Damon, Ben Affleck, Minnie Driver and Stellan Skarsgård . Written by Affleck and Damon, the film follows 20 - year - old South Boston laborer Will Hunting, an unrecognized genius who, as part of a deferred prosecution agreement after assaulting a police officer, becomes a client of a therapist and studies advanced mathematics with a renowned professor . Through his therapy sessions, Will re-evaluates his relationships with his best friend, his girlfriend and himself, facing the significant task of confronting his past and thinking about his future . </P> <P> The film grossed over US $225 million during its theatrical run, from a $10 million budget . It was nominated for nine Academy Awards, including the Academy Award for Best Picture, and won two: Best Supporting Actor for Williams and Best Original Screenplay for Affleck and Damon . </P>

What movie did ben affleck and matt damon wrote