What are the steps to calculate the measure of angle B in a triangle when the measures of angles BAC and BCD are given?