Bobby has 3 times as many spaceships as his friend. Bobby has 21 spaceships. How many spaceships does his friend have?