Correct. The two trains will pass each other after half an hour of travel, or when t = 0.5.