To understand the event "John had to write a paper for school.  John used her computer to type up the paper.", it is important to know that "Her" is a way of referring to a female person, in this case, one who owns a computer.