The market sold 24 heads of lettuce one morning. That afternoon 2/7 of the remaining heads of lettuce were sold. The number of heads left now was 1/2 of ye numbet the market haf at the beginning of yhe day. How many heads of lettuce were there at the beginning of the day.