One bar of candy A and two bars of candy B have 767 calories. Two bars of candy A and one bar of candy B contain 781 calories. How do you find the caloric content of each candy bar?