I suspect that a lot more of this sort of thing goes on than most of us imagine - but having said that, if you get caught and the evidence is there against you then you have to take the punishment.
If it did happen in this case they are both guilty and will have to suffer the consequences