A company uses two factories to manufacture three different sizes of boats. Each boat takes a different amount of time to perform each task. For example, the small boat requires 1 hour of cutting, 0.5 hours of assembly, and 0.2 hours of packaging. The medium boat requires 1.6 hours of cutting, 1 hour of assembly, and 0.2 hours of packaging. Finally, the large boat requires 2.5 hours of cutting, 2 hours of assembly, and 1.4 hours of packaging time. The factory pays each department at each factory differently, according to this pay scale: Factory A pays out $15 per hour for cutting, $12 for packaging, and $11 for assembly. Factory B pays out $13 for cutting, $11 for assembly, and $10 for packaging. How much will each factory have to pay in wages to construct each type of boat?