Teachers convicted of having sex