Bridgette’s market sold 36 avocados one morning. That afternoon 2/7 of the remaining avocados were sold. The number of avocados left was now 1/2 of the number the market had at the beginning of the day. How many avocados were ther at the beginning of the day?