Sarah and David are running a business together. They decide to split their profits based on the work hours they each contribute. Sarah works 3 hours more than twice the number of hours that David works. If the total number of hours worked by both Sarah and David is 24, how many hours does each of them work? Let's think step by step and output the final answer within \boxed{}.
user