A group of soldiers marched 34 miles over three days. The first day they marched 3 miles less than twice the number of miles they marched on the second day. On the third day, they marched 5 miles more than they marched on the first day. How many miles did they march each day?