I can't do this at all, please explain clearly. Many many thanks!

A train does the first part of a journey at 30mph, then the second part at 60 mph, and the average speed for the whole journey is 42 6/17mph (this is made of a whole number 42 and a fraction 6/17). What fraction of the distance of the whole journey is the first (30mph) part?