Answer:

Step-by-step explanation:
Represent Alice with A, her friend with F and you with Y.
From the question, we have:

--- Twice as much Alice means 2 times Alice's earnings
--- 2 less than her friend
Required
Determine the total amount

Substitute
for A in


Substitute
for F in 

The total amount is calculated by adding the earnings of Alice, her friend and you



<em>Hence, the total earnings is 5d - 2</em>