There are 24 pieces of sports equipment at the gym. The ratio of basketballs to tennis balls is 5 : 1 . How many basketballs and tennis balls are at the gym?