Answer:

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
 --- Twice as much Alice means 2 times Alice's earnings
 --- 2 less than her friend
 --- 2 less than her friend
Required
Determine the total amount

Substitute 
 for A in
 for A in 
 
 


Substitute 
 for F in
 for F in 


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



Hence, the total earnings is 5d - 2