Question: what is the relationship between work and energy in a machine?
Answer: work is a transfer of energy. So 1 joule of energy transferred from one place to another is 1 joule of work done.