Book trilogy title
What book was about a kid who was given a scroll, traveled back in time, met people, and had a real twin back in his time? It's a 3-book series. The 1st book has a purple cover and the 3rd has a green cover. Can anyone help me remember?