to buy a gift $1.80 was collected from each person but they were $28 sort.When $3 was collected from each person,they had $20 extra.How much were they planning to collect

If there are n people paying,

1.80n + 28.00 = 3.00n - 20.00
n = 40

so, there were 40 people

1.80*40+28 = 100

the gift was $100