Joey gave half of the marbles he had plus 3 marbles to his brother, half of the remaining marbles plus 3 marbles to his best friend and half of what’s left plus three marbles to his cousin. If he had originally had 82 marbles, then how many marbles did he have left?