A maths teacher bought 40 calculators at $8.20 each and a number of other calculators costing $2.95 each.In all she spent$387. How many of the cheaper calculators did she buy?