Rachel buys 30 nuts and bolts to finish a project. If each but costs 10 cents, each bolt costs 20 cents and the total purchase price is $4.20, how many nuts and bolts does she buy?