The ratio of apples to oranges in a lorry was 5:2. There were 248 oranges. How many apples were there?