The system of equations we have is
We first multiply the top equation by 3 to get
and therefore, our system becomes
subtracting the top equation from the bottom equation gives
finally, dividing both sides by 7 gives
with the value of a in hand, we now find the value of k
subtracting 300 from both sides gives
Hence, the solution to the system is a = 300 and k = 200, meaning 300 adults and 200 kids visited the carnival.