Since Mr Smith leaves 3 hours before Mrs Smith and he averages 40mph, the total distance that he covered in those 3 hours is:

let t be the time wher Mrs Smith catches up with Mr Smith, and let d be the distance between them. Then, we can write the following equations:

equating both expressions and solving for t, we get:

therefore, it will take Mrs Smith 12 hours to catch up to Mr Smith