Maybe this will work:
a - # of adults at $A amount each
c - # of children at $C amount each
a+c = T, total number of tickets
aA + cC = $T total price of all tickets
a c T
aA cC $T
would be the 2x3 matrix. Can solve manually or by using the "rref", reduced row echelon form in the calculator.