Could someone kindly provide me with the process of how I can solve the following word problem using matrices?

Question: A firm produces three products, A, B and C that require processing by three machines, I, II, III. The time in hours required for processing one unit of each product by the three machines is given by the following table:

A B C

I 3 1 2

II 1 2 1

III 2 4 1

Machine I is available for 490 hours, machine II is available for 310 hours, and machine III for 560 hours. Find how many units of each product should be produced to make use of all the available time on the machines.

I am sorry, I don't know how to post a proper table for my question. But in the table above IA corresponds to entry 3, IB = 1, IC = 2, IIA=1, IIB=2, IIIC=1, IIIA=2, IIIB=4, IIIC=1