PLEASE HELP!

an electrician charges $80 an hour. his apprentice earns $42 an hour. the apprentice works on a job 3 hours less than the plumber. together they earn $850. how many hours did they each work?