Power Physics Question?

I’m having trouble answering this question on my homework. I’d appreciate it if someone could help me out. Thank you!

Engine A generates the power P and operates for 10 s; engine B generates the power 2P and operates for 5 s; engine C generates the power 2P and operates for 20 s; and engine D generates the power 1/2P and operates for 40 s.  Please rank the engines in order of increasing work done (from least to most) and EXPLAIN WHY you have ranked the engines in the order you have. Indicate ties where appropriate.

2017-04-11T00:37:33.809Z