Teddy has 500 marbles. After giving 240 marbles to his brother, he sells 40% of the remainder to Allen. How many marbles does he have at last?

after giving to brother, he has 500-240 or 260 left

after selling 40% of those, he has 60% of the 260 left

60% of 260 = 156 marbles left