Answer:
Andy gets 7 questions wrong.
Explanation:
Let A, B, C and D be the number of questions answered wrong by Andy, Beth, Charlie, and Daniel, respectively.
Andy and Beth together get the same number of questions wrong as Charlie and Daniel together:

Andy and Daniel together get four more questions wrong than Beth and Charlie do together:

Charlie gets five questions wrong:

Solving the linear system:

Andy gets 7 questions wrong.