When an act is an offence by reason of its relation to any other act which is also an offence or which would be an offence if the doer were