There was a total of 46 balls on the playground. 21 were soccer balls, 12 were tennis balls, and the rest were baseballs. How many were baseballs?