Write an algebraic equation for the following problem and then solve it.
A hospital received a shipment of 14-milligram doses of a medicine. Each 14-milligram package was repacked into two
smaller doses of unequal size and labeled packet A and packet B. The hospital then used 17 doses of packet A and 10
doses of packet B in one week. The hospital used a total of 224 milligrams of the medicine during that week. How
many milligrams of the medicine are contained in each A packet? In each B packet?