A bag contains $510 in the form of 50 p, 25 p and 20 p coins in the ratio 2:3:4.
Find the number of coins of each type​