You are given the concentration in terms of milligrams per milliliter and volume in terms of milliliter. Through dimensional analysis, you know that you can end up with the unit of milligrams if you multiply the concentration with the volume. The solution is as follows:
Mass = Concentration* Volume
Mass = 20 mg/mL * 340 mL
Mass = 6,800 mg insulin