Our team scored well in the inter school athletics carnival. each person was allowed to participate in one running and one jumping event. we gained 8 places in running events. 5 of us gained a place in both running and jumping events, and 14 of us gained exactly one place. in total how many places were gained by the team?