Mr. Smith ordered 27 boxes of baseballs. There were 30 baseballs in each box. How many baseballs did Mr. Smith order?