One evening, a restaurant served a total of 1/2 of a loaf of wheat bread and 7/8 of a loaf of white bread. How many loaves were served in all?