Mary had 18 baseball cards. Fred gave Mary 26 new baseball cards . Mary sold 40 baseball cards . How many baseball cards does Mary have now?