PersonX locks the door behind PersonY
to be walking PersonY to the door to grab the door lock to have invited PersonY in to have asked PersonY to sit down to be scared of thieves to touch the door to turn the lock