Answer:
1) Before they went to the gym, they probably had eaten junk food. 2) Before they ate three hamburgers, they had done exercise at the gym. 3) Before they lifted weights, they had done some abs. 4) They had done aerobics before they were on the treadmill. Good luck!