project for pump and motor

hey guys newbie on arduinos I need some help, I am doing a project with a 240v to 24v transformer, an uno arduino and a 4 relay module and I need help to write the code for it to do -

push button

starts 24v dc pump

pump runs 15000

stops pump - starts 24v dc motor

motor runs 10000

stops motor - loop - starts 24v dc pump

pump runs 15000

stops pump - starts 24v dc motor

motor runs 10000

stops motor

any help would be greatly appriciated