when the text problem involves two trains