Sarah has 3 math textbooks and 5 science textbooks. Emily has twice as many math textbooks as Sarah and 3 fewer science textbooks than Sarah. Jake has half as many math textbooks as Emily and the same number of science textbooks as Emily. How many textbooks do they have in total? Let's think step by step and output the final answer within \boxed{}.
user