The first step in solving this problem is to recognize that there are 4 boys (Miguel and 3 of his friends).
If in total they originally had $40 and each boy had the same amount, then each boy originally had $10 (or $40 / 4).
The movie tickets were $7.50 each. So after buying the movie ticket, each boy had $2.50 left. ($10 - $7.50 = $2.50).
I hope this helps you.