A restaurant has a total of 27 tables and booths. Each table seats up to 8 people and each booth seats up to 4 people. The restaurant can seat a total of 140 people. How many booths are in the restaurant?