A catering agency has two kitchens to prepare food at two places A and B. From these places, mid-day meal is to be supplied to three different schools situated at P, Q, R. The monthly requirement of these schools are respectively 40, 40 and 50 food packets.