So he drove 5hrs, before lunch, now, he was going at speed, say "r", after he ate, he sped up by 10mph, so, his rate is whatever "r" is, plus 10, or " r + 10 ", after lunch
we know the whole trip took 10hrs, so, is 5hrs before lunch and 5hrs after lunch
we also know the whole trip was 500miles, so if he drove, say "d" miles before lunch, after lunch he drove the slack after lunch, or " 200 - d "
recall, your d = rt, distance = rate * time
![\bf \begin{array}{lccclll} &distance&rate&time\\ &-----&-----&-----\\ \textit{before lunch}&d&r&5\\ \textit{after lunch}&500-d&r+10&5 \end{array} \\\\\\ \begin{cases} \boxed{d}=5r\\ 500-d=(r+10)5\\ ----------\\ 500-\boxed{5r}=(r+10)5 \end{cases} \\\\\\ \cfrac{500-5r}{5}=r+10\implies 100-r=r+10](https://tex.z-dn.net/?f=%5Cbf%20%5Cbegin%7Barray%7D%7Blccclll%7D%0A%26distance%26rate%26time%5C%5C%0A%26-----%26-----%26-----%5C%5C%0A%5Ctextit%7Bbefore%20lunch%7D%26d%26r%265%5C%5C%0A%5Ctextit%7Bafter%20lunch%7D%26500-d%26r%2B10%265%0A%5Cend%7Barray%7D%0A%5C%5C%5C%5C%5C%5C%0A%0A%5Cbegin%7Bcases%7D%0A%5Cboxed%7Bd%7D%3D5r%5C%5C%0A500-d%3D%28r%2B10%295%5C%5C%0A----------%5C%5C%0A500-%5Cboxed%7B5r%7D%3D%28r%2B10%295%0A%5Cend%7Bcases%7D%0A%5C%5C%5C%5C%5C%5C%0A%5Ccfrac%7B500-5r%7D%7B5%7D%3Dr%2B10%5Cimplies%20100-r%3Dr%2B10)
and I'm sure you know what that is