Apple beats Q3 estimates as iPhone sales top $54.2 billion