Andy and Leo had a total of 41 cards at first. After Andy lost 5 of his cards and Leo los 1/2 of his cards, they had an equal number of cards left. How many cards did Leo have at first?

A+L=41

A-5 = L/2
So,
41-L-5 = L/2
Now finish it off

The answer is 24?