<span>This is a very nice counting question.
Suggestion / Hint: Count how many ways he can get from (0,0) to (5,7) by going through the point (2,3). Then subtract that from ALL POSSIBLE ways he can get from (0,0) to (5,7).
Hint for the hint: How many ways he can get from (0,0) to (5,7) by going through the point (2,3)? Well, that's the SUM of how many ways he can get from (0,0) to (2,3) and how many ways he get get from (2,3) to (5,7).
Hope this helps! :)</span>