While playing a real-time strategy game, Dan created military units for battle : long swordsmen, spearmen, and crossbowmen. Long swordsman require 20 units of food and 10 units of gold. Spearmen require 35 units of food and 40 units of wood. Crossbowmen require 40 units of wood and 30 units of gold. If Dan used 1300 units of gold, 2400 units of wood and 1375 units of food to create the units, how many of each type of military unit did he create?