hello
the number of friends contributing money = 4
since they contributed equal amount of money, the total amount they contributed = 4x
the total amount they contributed amongst them = $25
the amount each individual contributed = x
to find the amount each contributed, let's equate the amount contributed to 4x

Sam's friend contributed $6.25 amongst them equally to give a total of $25