Let A be the number of adult tickets and C be the number of children tickets sold. Since there are two unknowns, we need two equations.
6A + 4C = 104
A + C = 21
A = 21 - C
6(21 - C) + 4C = 104
126 - 6C + 4C = 104
-2C = -22
C = 11
A = 21 - 11 = 10
You sold 10 adult tickets and 11 children tickets.
Check: 6(10) + 4(11) = 60 + 44 = 104