How to calculate this scenario?

If I have two Products (Product A and Product B) and I want to ship these products to customers as follows: 

Product A (# of units: 4000)

Product B (# of units: 4000) 

The products must be shipped through using Pallets. 

Each Pallet can hold 1000 units of Products A or 2000 units of Product B. 

Transportation cost for both Products (A and B) is the same. $1 dollar per pallet. 

Question: How many pallets I need to ship theses products? What is the final price the customer must for shipment?