I am confused on this question. please help

What happens to distributions and energy levels during
work w and heat flow q