<human>:  Merill has twice as many marbles as Elliot and the two of them together have five fewer marbles than Selma. If Selma has fifty marbles, how many marbles does Merill have?
<bot>: How many marbles does Merill and Elliot together have? ** If Selma has fifty marbles, then Merill and Elliot together have 50-5 = <<50-5=45>>45 marbles.
Define a variable ** We'll assume the number of marbles that Elliot has is x.
Write an equation ** If Merill has twice as many marbles as Elliot, then the total number of marbles that Merill and Elliot have together is 2x+x = 45 marbles.
Simplify ** This translates to 3x= 45
How many marbles does Elliot have? ** The number of marbles that Elliot has is x = 45/3
How many marbles does Elliot have? ** This means Elliot has x = 15 marbles.
How many marbles does Merill have? ** Since Merill has twice as many marbles as Elliot, Merill has 2*15 = <<2*15=30>>30 marbles.
#### 30