Answer: Amount of money is shared by him and his friend is $17 and $21.25 respectively.
Explanation:
Since we have given that
Number of hours he worked for = 2 hours
Number of hours his friend worked for = 2.5 hours
Ratio of amount of time of his to his friend is given by

so, Amount of money shared by him is given by

Amount of money shared by his friend is given by

Hence, amount of money is shared by him and his friend is $17 and $21.25 respectively.