From the BBC:
With most of the bonus points sorted out now, at least we know what needs to happen for all three sides in the title hunt.
If Somerset win, which they are likely to do against Notts, they will be champions if it's a draw between Middlesex and Yorkshire at Lord's.
The trophy is also heading to the West Country if Yorkshire beat Middlesex but score less than 350 in their first innings.
If Yorkshire score more than 350 inside 110 overs and then beat Middlesex - Yorkshire win their third straight title.
If Middlesex win full stop, they are champions.