Write an equation to model the situation. Then answer the question: Frank has M apples and Mary has twice as many apples as Frank. Together they have 27 apples. How many apples does Frank have?