The girl agreed to have sex to avoid eviction