👤

Emily has x amounts of apples, Peter has 4 apples less than Emily and Joshua has 2 times the number of apples of Peter. The total amount of apples is 40. Find how many apples each person has.