The girl agreed to have sex to avoid eviction from the apartment