# Probability that two people see each other at the coffee shop

Two mathematicians each come into a coffee shop at a random time between 8:00 a.m. and 9:00 a.m. each day. Each orders a cup of coffee then sits at a table, reading a newspaper for 20 minutes before leaving to go to work.

On any day, what is the probability that both mathematicians are at the coffee shop at the same time (that is, their arrival times are within 20 minutes of each other)?

-
This is a common homework question. I'd like to see more effort on the part of the asker than this. – Larry Wang Jul 25 '10 at 17:35
I don't know which classes you're taking where this is a common homework question, but I just really like the graphical solution for this problem and so I thought I'd ask it so that someone could put up the solution. – Ben Alpert Jul 25 '10 at 18:23
I agree with your goals, I'm not implying that you got assigned this question for homework. I just think that this looks a lot like a student retyping a question from his textbook and getting a complete answer, which is a bad precedent to set. For instance, this is exactly problem 5.1.6 out of Pitman's Probability, a standard textbook at Berkeley. – Larry Wang Jul 26 '10 at 8:35

Tom Stephens: In Mathematica, you can generate the above plot by running RegionPlot[x - 1/3 < y < x + 1/3, {x, 0, 1}, {y, 0, 1}, FrameTicks -> {{0, 1/3, 2/3, 1}, {0, 1/3, 2/3, 1}}] then selecting Save Graphic As… from the right-click menu to make a PNG. If you don't have Mathematica, you'll need to find some other tool. – Ben Alpert Jul 25 '10 at 21:55