One bar of candy A and two bars of candy B contain 783 calories. Two of candy A and one of candy B contain 792 calories. Find the caloric of each candy bar?