3/8 of the people at a funfair were children. 3/4 of the remaining people were men. There were 140 more children than women. How many people went to the funfair?