Two friends traveled to a nearby city. In the second day they travelled 75 miles more than the first day, and in the third day, they travelled a third of the distance covered in the second day. How many miles did they cover in the first day, if the total travelled was 170 miles?