Emily is picking strawberries at a speed of 3 strawberries per second. Her little sister Sophia joins Emily when there are 20 strawberries in Emily's basket and starts to eat these strawberries at a speed of 5 strawberries per second. When Sophia finally leaves, there are 8 strawberries in the basket. How long did Sophia stay with Emily?