A trolley runs along a straight track, and east is positive. Its velocity is +6m/s at t=0. It changes at a steady rate to −2m/s at t=4s and stays at −2m/s until t=6s. Then it changes at a steady rate to +6m/s at t=10s. How far is the trolley from its starting point at t=10s, and what distance has it travelled?