Fx: x is a logic student
Gx: x is ambitious
Hx: x studies hard
Jx: x is an exercise
Kx: x is easy
Fxy: x does y
a: Bob
b: Carol

6. Bob and Carol are both logic students. All logic students are ambitious. Anyone who is ambitious studies hard. Therefore, Bob and Carol study hard.

FaFbA, FGD, GHD |- HaHbA

1. FaFbA
2. FGD
3. GHD \show HaHbA
4. FHD......2,3 DD inf
5. FaHaC....4 D elim
6. FbHbC....4 D elim
7. Fa.......1 A elim
8. Fb.......1 A elim
9. Ha.......5,7 C elim
10. Hb......6,8 C elim
11. HaHbA...9,10 A int