A fruit seller packed some apples into 15 small cartons and 20 big cartons. Each big carton contained 15 more apples than each small carton. 1/4 of the total number of apples were packed in small cartons. How many apples did the fruit seller pack altogether?