David purchased some cookies at the cost of 5 for $4 and sold 4 for $5. He made a profit of $90. How many cookies did he purchase and sell to make that much money