In​ 2009, a diabetic express company charged ​$39.95 for a vial of type A insulin and ​$30.49 for a vial of type B insulin. If a total of ​$1446.64 was collected for 40 vials of​ insulin, how many vials of each type were​ sold?

1 answer

number of A vials ---- x
number of B vials ---- 40-x

solve for x:

39.95x + 30.49(20-x) = 1446.64