Identifying the common online source of mathematical work
From a comment:


  The solutions the students turned in are basically just equations with
  no surrounding explanatory text.


Ask student A to produce the explanatory text for the equations in the common answer. If A indeed worked out the answer independently, A should be able to explain the reasoning leading to each equation. If A just copied down a solution that only contained the equations, that is less likely.